Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOption ¶
type ClientOption func(*clientOptions)
func WithHTTPClient ¶
func WithHTTPClient(client *http.Client) ClientOption
WithHTTPClient sets the http client for the client. This allows custom http clients to be used.
type GatewayHttpClient ¶
type GatewayHttpClient struct {
// contains filtered or unexported fields
}
func NewGatewayHttpClient ¶
func NewGatewayHttpClient(target *url.URL, opts ...ClientOption) (*GatewayHttpClient, error)
NewGatewayHttpClient creates a new gateway http client. If the client does not have a cookie jar, an error is returned.
func (*GatewayHttpClient) Auth ¶
func (g *GatewayHttpClient) Auth(ctx context.Context, auth *types.GatewayAuth) error
Auth authenticates the client with the gateway. It sets the returned cookie in the client's cookie jar.
func (*GatewayHttpClient) GetAuthParameter ¶
func (g *GatewayHttpClient) GetAuthParameter(ctx context.Context) (*types.GatewayAuthParameter, error)
GetAuthParameter returns the auth parameter for the client.
Click to show internal directories.
Click to hide internal directories.