Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct {
// contains filtered or unexported fields
}
Basic defines a basic authentication mechanism that attaches a username and password to each request.
func NewBasicAuthentication ¶
NewBasicAuthentication returns a value describing authentication credentials for a HTTP request.
type Bearer ¶
type Bearer struct {
// contains filtered or unexported fields
}
Bearer defines an authentication mechanism that attaches bearer token security credentials to each request.
func NewBearer ¶
func NewBearer(token tokenFunc) *Bearer
NewBearer returns a value describing authentication credentials for a HTTP request.
func NewBearerWithStaticToken ¶
NewBearerWithStaticToken returns a value describing authentication credentials for a HTTP request.
func (*Bearer) AddCredentials ¶
AddCredentials includes the bearer authentication credentials within a HTTP request.
Click to show internal directories.
Click to hide internal directories.