Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContentTypeForm = "application/x-www-form-urlencoded" ContentTypeJSON = "application/json" )
Variables ¶
View Source
var ErrCancel = errors.New("request cancel by JsonNet")
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Type string
Config json.RawMessage
}
type AuthStrategy ¶
type AuthStrategy interface {
// contains filtered or unexported methods
}
type Builder ¶
type Builder struct {
Config *Config
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(ctx context.Context, config json.RawMessage, deps Dependencies, jsonnetCache *ristretto.Cache) (_ *Builder, err error)
func (*Builder) BuildRequest ¶
type Dependencies ¶ added in v0.11.0
type Dependencies interface {
x.LoggingProvider
x.TracingProvider
x.HTTPClientProvider
jsonnetsecure.VMProvider
}
Click to show internal directories.
Click to hide internal directories.