Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func LoadEnvConfig ¶
func LoadEnvConfig() *Config
type Server ¶
type Server struct { IP string `envconfig:"SERVER_IP" default:"127.0.0.1"` Port string `envconfig:"SERVER_PORT" default:"3333"` TLSKey string `envconfig:"SERVER_TLS_KEY"` TLSCert string `envconfig:"SERVER_TLS_CERT"` RTimeout time.Duration `envconfig:"SERVER_READ_TIMEOUT" default:"15s"` WTimeout time.Duration `envconfig:"SERVER_WRITE_TIMEOUT" default:"15s"` }
func (*Server) GetFullAddr ¶
Click to show internal directories.
Click to hide internal directories.