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 {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(config json.RawMessage, client *retryablehttp.Client, l *logrusx.Logger) (*Builder, error)
func (*Builder) BuildRequest ¶
func (b *Builder) BuildRequest(body interface{}) (*retryablehttp.Request, error)
Click to show internal directories.
Click to hide internal directories.