auth

package
v0.0.0-...-e98f407 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, authURL string, options ...ClientConfigOption) (*client.Client, error)

NewClient initializes a new client to the `auth` service

Types

type ClientConfig

type ClientConfig struct {
	// contains filtered or unexported fields
}

ClientConfig the config to use when initializing a new Client

type ClientConfigOption

type ClientConfigOption func(*ClientConfig)

ClientConfigOption an option to customize the config to use when initializing a client

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) ClientConfigOption

WithHTTPClient uses a custom http client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL