request

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentRequest
	ErrorParamInvalid
	ErrorComponentNotInitialized
	ErrorConfigInvalid
	ErrorDependencyTLSDefault
	ErrorComponentStart
	ErrorComponentReload
)
View Source
const (
	ComponentType = "request"
)

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig(indent string) []byte

func Register

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

func RegisterNew

func RegisterNew(ctx libctx.FuncContext, cfg libcfg.Config, key string, cli libhtc.HttpClient)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

Types

type ComponentRequest

type ComponentRequest interface {
	cfgtps.Component

	SetHTTPClient(cli libhtc.HttpClient)
	Request() libreq.Request
}

func Load

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

Jump to

Keyboard shortcuts

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