Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Channel ¶
type Channel struct {
Pulsar `yaml:",inline"`
Rabbitmq `yaml:",inline"`
TLSOptions TLSOptions `json:"tls,omitempty" yaml:"tls,omitempty"`
Host string `json:"host,omitempty" yaml:"host,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
Topic string `json:"topic,omitempty" yaml:"topic,omitempty"`
ChannelSecurity ChannelSecurity `json:"authentication,omitempty" yaml:"authentication,omitempty"`
}
type ChannelSecurity ¶
type ChannelSecurity struct {
Username string `json:"username,omitempty" yaml:"username,omitempty"`
Password string `json:"password,omitempty" yaml:"password,omitempty"`
ClientKey File `json:"client_key,omitempty" yaml:"client_key,omitempty"`
ClientCertificate File `json:"client_certificate,omitempty" yaml:"certificate,omitempty"`
Mechanism string `json:"security_mechanism,omitempty" yaml:"security_mechanism,omitempty"`
}
type Config ¶
type Config struct {
Name string `json:"name" yaml:"name" xml:"name"`
Server Server `json:"server" yaml:"server" xml:"server"`
Gorm map[string]GormDatasource `json:"gorm,omitempty" yaml:"gorm,omitempty"`
Channel map[string]Channel `json:"messaging_channel,omitempty" yaml:"messaging_channel,omitempty"`
}
type GormDatasource ¶
type GormDatasource struct {
Type string `json:"type,omitempty" yaml:"type,omitempty"`
URL string `json:"url,omitempty" yaml:"url,omitempty"`
Host string `json:"host,omitempty" yaml:"host,omitempty"`
Database string `json:"database,omitempty" yaml:"database,omitempty"`
Authentication GormDatasourceAuthentication `json:"authentication,omitempty" yaml:"authentication,omitempty"`
}
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func NewConfigLoader ¶
func (*Loader) ReadConfiguration ¶
type Logging ¶
type Logging struct {
Level string `json:"level,omitempty" yaml:"level,omitempty" xml:"level,omitempty"`
}
type Server ¶
type Server struct {
Mode string `json:"mode" yaml:"mode" xml:"mode"`
Type string `json:"type" yaml:"type" xml:"type"`
Port int `json:"port" yaml:"port" xml:"port"`
Accept []string `json:"accept" yaml:"accept" xml:"accept"`
ContentType []string `json:"content-type" yaml:"content-type" xml:"content-type"`
}
type TLSOptions ¶
type TLSOptions struct {
RootCA File `json:"certificate,omitempty" yaml:"certificate,omitempty"`
SkipVerification bool `json:"skip_verification,omitempty" yaml:"skip_verification,omitempty"`
SkipHostnameVerification bool `json:"skip_hostname_verification,omitempty" yaml:"skip_hostname_verification,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.