Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultContentType = "application/json; charset=utf-8"
View Source
const DefaultHTTPMethod = "POST"
View Source
const DefaultUserAgent = "falco-talon"
Variables ¶
View Source
var ErrClientAuthenticationError = errors.New("authentication error") // ErrClientAuthenticationError = 401
View Source
var ErrForbidden = errors.New("access denied") // ErrForbidden = 403
View Source
var ErrHeaderMissing = errors.New("header missing") // ErrHeaderMissing = 400
View Source
var ErrNotFound = errors.New("resource not found") // ErrNotFound = 404
View Source
var ErrTooManyRequest = errors.New("exceeding post rate limit") // ErrTooManyRequest = 429
View Source
var ErrUnprocessableEntityError = errors.New("wrong request") // ErrUnprocessableEntityError = 422
Functions ¶
Types ¶
type Client ¶
func DefaultClient ¶
func DefaultClient() Client
func (*Client) DeleteHeader ¶
func (*Client) SetBasicAuth ¶
func (*Client) SetContentType ¶
func (*Client) SetHTTPMethod ¶
Click to show internal directories.
Click to hide internal directories.