Documentation ¶
Index ¶
- type Config
- type Provider
- type ProviderKind
- func (k ProviderKind) MarshalJSON() ([]byte, error)
- func (k ProviderKind) MarshalYAML() (interface{}, error)
- func (k ProviderKind) String() string
- func (k *ProviderKind) UnmarshalJSON(in []byte) error
- func (k *ProviderKind) UnmarshalText(v []byte) error
- func (k *ProviderKind) UnmarshalYAML(value *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool `yaml:"debug"` Addr string `yaml:"addr"` Providers []Provider `yaml:"providers"` }
func LoadConfig ¶
type Provider ¶
type ProviderKind ¶
type ProviderKind uint8
const ( ProviderKindNone ProviderKind = iota ProviderKindContact ProviderKindKorona )
func (ProviderKind) MarshalJSON ¶
func (k ProviderKind) MarshalJSON() ([]byte, error)
func (ProviderKind) MarshalYAML ¶
func (k ProviderKind) MarshalYAML() (interface{}, error)
func (ProviderKind) String ¶
func (k ProviderKind) String() string
func (*ProviderKind) UnmarshalJSON ¶
func (k *ProviderKind) UnmarshalJSON(in []byte) error
func (*ProviderKind) UnmarshalText ¶
func (k *ProviderKind) UnmarshalText(v []byte) error
func (*ProviderKind) UnmarshalYAML ¶
func (k *ProviderKind) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.