Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func SetOptions ¶
Types ¶
type Auth ¶
type Auth struct {
Name string `json:"name" sc:"name"`
Enable bool `json:"enable" sc:"enable"`
Namespace string `json:"namespace" sc:"namespace"`
AuthCredentials authCredentials `json:"authCredentials" sc:"authCredentials"`
PublicKey string `json:"publicKey" sc:"public-key"`
PrivateKey string `json:"privateKey" sc:"private-key"`
}
type Broker ¶
type Client ¶
type Config ¶
type Logger ¶
type Logger struct {
Name string `json:"name" sc:"name"`
Level string `json:"level" sc:"level"`
// todo support map settings
// Fields map[string]string `json:"fields" sc:"fields"`
CallerSkipCount int `json:"caller-skip-count" sc:"caller-skip-count"`
Persistence logPersistence `json:"persistence" sc:"persistence"`
}
type Registry ¶
type Server ¶
type Server struct {
Address string `json:"address" sc:"address"`
Advertise string `json:"advertise" sc:"advertise"`
ID string `json:"id" sc:"id"`
Metadata metadata `json:"metadata" sc:"metadata"`
Name string `json:"name" sc:"name"`
Protocol string `json:"protocol" sc:"protocol"`
Version string `json:"version" sc:"version"`
Registry serverRegistry `json:"Registry" sc:"Registry"`
EnableDebug bool `json:"enableDebug" sc:"enable-debug"`
}
type Service ¶
type StackConfig ¶
type StackConfig struct {
Stack struct {
Includes string `json:"includes" sc:"includes"`
Config Config `json:"config" sc:"config"`
Registry Registry `json:"registry" sc:"registry"`
Broker Broker `json:"broker" sc:"broker"`
Client Client `json:"client" sc:"client"`
Profile string `json:"profile" sc:"profile"`
Runtime string `json:"runtime" sc:"runtime"`
Server Server `json:"server" sc:"server"`
Selector Selector `json:"selector" sc:"selector"`
Transport Transport `json:"transport" sc:"transport"`
Logger Logger `json:"logger" sc:"logger"`
Auth Auth `json:"auth" sc:"auth"`
Service Service `json:"service" sc:"service"`
} `json:"stack" sc:"stack"`
}
Click to show internal directories.
Click to hide internal directories.