Documentation ¶ Index ¶ func IntoContext(ctx context.Context, client *Client) context.Context type Client func FromContext(ctx context.Context) (*Client, error) func New(baseURL string) (*Client, error) func (c *Client) Login(ctx context.Context, id, secret string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IntoContext ¶ func IntoContext(ctx context.Context, client *Client) context.Context IntoContext returns a child context with the Client within. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } ... func FromContext ¶ func FromContext(ctx context.Context) (*Client, error) FromContext retrieves a Client from the given context. func New ¶ func New(baseURL string) (*Client, error) ... func (*Client) Login ¶ func (c *Client) Login(ctx context.Context, id, secret string) (string, error) ... Source Files ¶ View all Source files client.gocontext.go Click to show internal directories. Click to hide internal directories.