http

package
v1.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentHttp
	ErrorParamInvalid
	ErrorComponentNotInitialized
	ErrorConfigInvalid
	ErrorComponentStart
	ErrorComponentReload
	ErrorDependencyTLSDefault
)
View Source
const (
	ComponentType = "http"
)
View Source
const (
	DefaultTlsKey = "t"
)

Variables

This section is empty.

Functions

func DefaultConfig added in v1.8.10

func DefaultConfig(indent string) []byte

func Register

func Register(cfg libcfg.Config, key string, cpt ComponentHttp)

func RegisterNew

func RegisterNew(ctx libctx.FuncContext, cfg libcfg.Config, key string, tlsKey string, hdl srvtps.FuncHandler)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

Types

type ComponentHttp

type ComponentHttp interface {
	cfgtps.Component

	SetTLSKey(tlsKey string)
	SetHandler(fct srvtps.FuncHandler)

	GetPool() htpool.Pool
	SetPool(pool htpool.Pool)
}

func Load

func Load(getCpt cfgtps.FuncCptGet, key string) ComponentHttp

func New

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL