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 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 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.
Click to show internal directories.
Click to hide internal directories.