head

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentHead
	ErrorParamInvalid
	ErrorComponentNotInitialized
	ErrorConfigInvalid
	ErrorReloadPoolServer
	ErrorReloadTLSDefault
)
View Source
const (
	ComponentType = "head"
)

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 CptHead)

func RegisterNew

func RegisterNew(ctx context.Context, cfg libcfg.Config, key string)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

Types

type CptHead added in v1.19.0

type CptHead interface {
	cfgtps.Component

	GetHeaders() librtr.Headers
	SetHeaders(head librtr.Headers)
}

func Load

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

func New

func New(ctx context.Context) CptHead

Jump to

Keyboard shortcuts

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