Documentation ¶
Index ¶
- type Client
- func (c *Client) AddUserToGroup(ctx context.Context, groupID, userID int) (*http.Response, error)
- func (c *Client) ListGroups(ctx context.Context, req *ListGroupsRequest) ([]*Group, *http.Response, error)
- func (c *Client) RemoveUserFromGroup(ctx context.Context, groupID, userID int) (*http.Response, error)
- type ClientOption
- type Group
- type ListGroupsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddUserToGroup ¶
func (*Client) ListGroups ¶
type ClientOption ¶
type ClientOption func(*options)
func WithAPIKey ¶
func WithAPIKey(token string) ClientOption
func WithHTTPClient ¶
func WithHTTPClient(httpClient *http.Client) ClientOption
func WithQueryParamAuthMethod ¶
func WithQueryParamAuthMethod() ClientOption
type ListGroupsRequest ¶
Click to show internal directories.
Click to hide internal directories.