Versions in this module Expand all Collapse all v0 v0.1.1 Mar 27, 2022 Changes in this version + func InitRemote(provider, endpoint, configPath string, conf interface{}) error v0.0.1 Mar 20, 2022 Changes in this version + func Init(conf interface{}) error + func Read(section string, cfg interface{}) error + type CORSConfig struct + Headers []string + Methods []string + Origins []string + func (cfg *CORSConfig) Allows(h http.Handler) http.Handler + type CertConfig struct + PrivateKey string + PublicKey string + type Config struct + Cert CertConfig + DB DBConfig + Gateway GatewayConfig + Service ServerConfig + type DBConfig struct + Database string + Host string + Name string + Password string + Port int + User string + func (conf *DBConfig) DSN() string + type EndPoint struct + Addr string + CAFile string + CertFile string + KeyFile string + Name string + Network string + TLS bool + TTL int + func DefaultEndPoint() *EndPoint + func NewEndpoint(addr string) *EndPoint + func (cfg *EndPoint) GetHost() string + func (cfg *EndPoint) GetPort() int + func (cfg *EndPoint) LocalIP() string + func (cfg *EndPoint) LocalListener(listener net.Listener, host string, err error) + func (cfg *EndPoint) SetDefault() + type GatewayConfig struct + CORS *CORSConfig + EndPoint *EndPoint + Name string + RegistryAddrs []string + Transports []*EndPoint + type ServerConfig struct + EndPoint *EndPoint + Name string + RegistryAddrs []string