Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Env string Logs []LogSetting `yaml:"logs"` Database struct { Username string Password string Address string Type string DBName string } Redis struct { Address string Password string DB int } Nats struct { ClusterID string `yaml:"cluster_id"` Username string Password string Address string } Dispatcher struct { AdvertiseAddr string `yaml:"advertise_addr"` GRPCBind string `yaml:"grpc_bind"` } Messenger struct { AdvertiseAddr string `yaml:"advertise_addr"` GRPCBind string `yaml:"grpc_bind"` HTTPBind string `yaml:"http_bind"` } Gateway struct { AdvertiseAddr string `yaml:"advertise_addr"` AdvertiseJobAddr string `yaml:"advertise_job_addr"` GRPCBind string `yaml:"grpc_bind"` JobGRPCBind string `yaml:"job_grpc_bind"` HTTPBind string `yaml:"http_bind"` } Router struct { AdvertiseAddr string `yaml:"advertise_addr"` GRPCBind string `yaml:"grpc_bind"` } Identity struct { AdvertiseAddr string `yaml:"advertise_addr"` HTTPBind string `yaml:"http_bind"` } }
func New ¶
func New(fileName string) *Configuration
Click to show internal directories.
Click to hide internal directories.