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 IsCodeError ¶
func IsCodeError() bool
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 Load(getCpt libcfg.FuncComponentGet, key string) ComponentRequest
func New ¶
func New(tls string, cli libreq.FctHttpClient) ComponentRequest
Click to show internal directories.
Click to hide internal directories.