Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindOptions ¶
Types ¶
type Bus ¶
type Bus struct { Debug bool `json:"debug" yaml:"debug" mapstructure:"debug" structs:"debug"` Trace bool `json:"trace" yaml:"trace" mapstructure:"trace" structs:"trace"` Brokers []Broker `json:"broker" structs:"broker" mapstructure:"broker"` Options map[string]interface{} `json:"options" structs:"options" mapstructure:"options"` }
func DefaultBusConfig ¶
func DefaultBusConfig() Bus
type Cache ¶
type Cache struct { Store string `json:"store" yaml:"store" mapstructure:"store"` DefaultExpiration int `json:"default_expiration" yaml:"default_expiration" mapstructure:"default_expiration"` }
func DefaultCacheConfig ¶
func DefaultCacheConfig() Cache
type Config ¶
type Config struct { Debug bool `json:"debug" yaml:"debug" mapstructure:"debug"` Logger Logger `json:"logger" yaml:"logger" mapstructure:"logger"` Database Database `json:"database" yaml:"database" mapstructure:"database"` Bus Bus `json:"bus" yaml:"bus" mapstructure:"bus"` Cache Cache `json:"cache" yaml:"cache" mapstructure:"cache"` Server Server `json:"server" yaml:"server" mapstructure:"server"` Modules []Module `json:"modules" yaml:"modules" mapstructure:"modules"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Database ¶
type Database struct { Dialect string `json:"dialect" yaml:"dialect"` URL string `json:"url" yaml:"url"` Host string `json:"host" yaml:"host"` User string `json:"user" yaml:"user"` Password string `json:"password" yaml:"password"` Database string `json:"database" yaml:"database"` SSLMode string `json:"ssl_mode" yaml:"ssl_mode"` }
func DefaultDatabaseConfig ¶
func DefaultDatabaseConfig() Database
func (Database) ConnString ¶
func (Database) EntDialect ¶
type Logger ¶
type Logger struct {
Outputs map[string]Output `json:"outputs" yaml:"outputs" mapstructure:"outputs"`
}
func DefaultLoggerConfig ¶
func DefaultLoggerConfig() Logger
type Module ¶
type Module struct { Name string `json:"name" yaml:"name" mapstructure:"name"` Type string `json:"type" yaml:"type" mapstructure:"type"` Source message.Path `json:"source" yaml:"source" mapstructure:"source"` Sink message.Path `json:"sink" yaml:"sink" mapstructure:"sink"` Options map[string]interface{} `json:"options" yaml:"options" mapstructure:"options"` }
func DefaultModuleConfig ¶
func DefaultModuleConfig() []Module
type Server ¶
type Server struct { Host string `json:"host" yaml:"host" mapstructure:"host" yaml.mapstructure:"host"` Port string `json:"port" yaml:"port" mapstructure:"port" yaml.mapstructure:"port"` EnableMetrics bool `json:"enable_metrics" yaml:"enable_metrics" mapstructure:"enable_metrics" yaml.mapstructure:"enable_metrics"` Health ServerHealth `json:"health" yaml:"health" mapstructure:"health"` }
func DefaultServerConfig ¶
func DefaultServerConfig() Server
type ServerHealth ¶
Click to show internal directories.
Click to hide internal directories.