Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamEmpty liberr.CodeError = iota + liberr.MinPkgSMTPConfig ErrorConfigValidator ErrorConfigInvalidDSN ErrorConfigInvalidNetwork ErrorConfigInvalidParams ErrorConfigInvalidHost )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type ConfigModel ¶
type ConfigModel struct { DSN string `json:"dsn" yaml:"dsn" toml:"dsn" mapstructure:"dsn"` TLS libtls.Config `json:"tls,omitempty" yaml:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"` Monitor libmon.Config `json:"monitor,omitempty" yaml:"monitor,omitempty" toml:"monitor,omitempty" mapstructure:"monitor,omitempty"` }
func (ConfigModel) Validate ¶
func (c ConfigModel) Validate() liberr.Error
Click to show internal directories.
Click to hide internal directories.