Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextType = types.NewOpaqueType("http.Context")
Functions ¶
Types ¶
type Context ¶
type Context struct {
ContextInterface
}
type ContextInterface ¶
type ContextInterface interface {
Get(url string, headers map[string]string) (any, error)
Post(url string, data any, headers map[string]string) (any, error)
Client(caBundle string) (ContextInterface, error)
}
func NewHTTP ¶
func NewHTTP(client ClientInterface) ContextInterface
Click to show internal directories.
Click to hide internal directories.