request

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentRequest
	ErrorParamsInvalid
	ErrorComponentNotInitialized
	ErrorConfigInvalid
	ErrorDependencyTLSDefault
)
View Source
const (
	ComponentType = "request"
)

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig(indent string) []byte

func IsCodeError

func IsCodeError() bool

func Register

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

func RegisterNew

func RegisterNew(cfg libcfg.Config, key, tls string, cli libreq.FctHttpClient)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

Types

type ComponentRequest

type ComponentRequest interface {
	libcfg.Component

	SetHTTPClient(fct libreq.FctHttpClient)
	SetDefaultTLS(key string)

	Request() (libreq.Request, error)
}

func Load

func New

Jump to

Keyboard shortcuts

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