Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSize ¶
type ByteSize int64
func (ByteSize) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*ByteSize) ParseString ¶
ParseString handles environment variables and default values
func (*ByteSize) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type Duration ¶
Duration is a wrapper around time.Duration that supports JSON marshaling/unmarshaling
func (Duration) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface
func (*Duration) ParseString ¶
ParseString handles environment variables and default values
func (Duration) String ¶
String returns the string representation of the duration Implements the fmt.Stringer interface for pretty printing
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type LogLevel ¶
type LogLevel string
func (LogLevel) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*LogLevel) ParseString ¶
ParseString handles environment variables and default values
func (*LogLevel) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type StringList ¶
type StringList []string
StringList represents a list of strings, typically comma-separated in config
func (StringList) MarshalJSON ¶
func (l StringList) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*StringList) ParseString ¶
func (l *StringList) ParseString(s string) error
ParseString implements StringParser
func (*StringList) UnmarshalJSON ¶
func (l *StringList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler
type TCPAddress ¶
func (TCPAddress) MarshalJSON ¶
func (a TCPAddress) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (TCPAddress) NetworkAddress ¶
func (a TCPAddress) NetworkAddress() string
NetworkAddress returns the address in host:port format
func (*TCPAddress) ParseString ¶
func (a *TCPAddress) ParseString(s string) error
ParseString handles environment variables and default values
func (*TCPAddress) UnmarshalJSON ¶
func (a *TCPAddress) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler
type TimeZone ¶
type TimeZone struct {
// contains filtered or unexported fields
}
TimeZone represents a validated time zone name
func (TimeZone) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*TimeZone) ParseString ¶
ParseString handles environment variables and default values
func (*TimeZone) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler