Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentHttp ErrorParamInvalid ErrorComponentNotInitialized ErrorConfigInvalid ErrorStartComponent ErrorReloadComponent ErrorDependencyTLSDefault ErrorDependencyLogDefault )
View Source
const ( DefaultTlsKey = "tls" DefaultLogKey = "log" ComponentType = "http" )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶ added in v1.8.10
func RegisterNew ¶
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
Types ¶
type ComponentHttp ¶
type ComponentHttp interface { libcfg.Component SetTLSKey(tlsKey string) SetLOGKey(logKey string) SetHandler(handler map[string]http.Handler) GetPool() libhts.PoolServer SetPool(pool libhts.PoolServer) }
func Load ¶
func Load(getCpt libcfg.FuncComponentGet, key string) ComponentHttp
Click to show internal directories.
Click to hide internal directories.