Documentation
¶
Overview ¶
Implements an API client for the Token auth API (https://github.com/mutablelogic/go-server/pkg/handler/auth)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*client.Client
}
func New ¶
Create a new API client, providing the endpoint (ie, http://example.com/api/auth)
func (*Client) Create ¶
func (c *Client) Create(name string, expires_in time.Duration, scopes ...string) (auth.Token, error)
Create a token with name, duration and scopes, and return the token
Click to show internal directories.
Click to hide internal directories.