f

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package f provides simple test fixtures for xconfig.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anon

type Anon struct {
	Version string
}

Anon is part of text fixtures.

type BaseURLs

type BaseURLs struct {
	API string
}

type Config

type Config struct {
	Anon
	GoHard    bool
	Redis     Redis
	Rethink   RethinkConfig
	BaseURL   BaseURLs
	P2PGroups P2PGroups `env:"P2P_GROUPS"`
	P2PGs     P2PGroups
}

Config is part of text fixtures.

type Host

type Host struct {
	Address string
	Port    string
}

Host is part of text fixtures.

type P2PGroups added in v0.2.1

type P2PGroups struct {
	IsEnabled bool
}

type Redis

type Redis struct {
	Host string
	Port int
}

Redis is part of text fixtures.

type RethinkConfig

type RethinkConfig struct {
	Host     Host
	Db       string `default:"primary" usage:"main database used by our application"`
	Password string `secret:""`
}

RethinkConfig is part of text fixtures.

type TextUnmarshalerStringSlice

type TextUnmarshalerStringSlice []string

TextUnmarshalerStringSlice is an example of encoding.TextUnmarshaler.

func (*TextUnmarshalerStringSlice) UnmarshalText

func (l *TextUnmarshalerStringSlice) UnmarshalText(value []byte) error

UnmarshalText is part of encoding.TextUnmarshaler.

type Types

type Types struct {
	String   string
	Bool     bool
	Duration time.Duration
	Int      int
	Int8     int8
	Int16    int16
	Int32    int32
	Int64    int64
	Uint     uint
	Uint8    uint8
	Uint16   uint16
	Uint32   uint32
	Uint64   uint64
	Float32  float32
	Float64  float64

	SliceString   []string
	SliceInt      []int
	SliceInt32    []int
	SliceUint     []uint
	SliceFloat32  []float32
	SliceDuration []time.Duration

	SliceTextUnmarshaler *TextUnmarshalerStringSlice
}

Types is part of text fixtures.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL