Documentation ¶
Index ¶
- type Client
- func (c *Client) Add(ctx context.Context, request *v2.CreateUserRequest, ...) (*v2.User, error)
- func (c *Client) Delete(ctx context.Context, userID string, opts ...option.RequestOption) (*v2.SuccessResponse, error)
- func (c *Client) Get(ctx context.Context, userID string, opts ...option.RequestOption) (*v2.User, error)
- func (c *Client) GetFacts(ctx context.Context, userID string, opts ...option.RequestOption) (*v2.FactsResponse, error)
- func (c *Client) GetSessions(ctx context.Context, userID string, opts ...option.RequestOption) ([]*v2.Session, error)
- func (c *Client) ListOrdered(ctx context.Context, request *v2.UserListOrderedRequest, ...) (*v2.UserListResponse, error)
- func (c *Client) Update(ctx context.Context, userID string, request *v2.UpdateUserRequest, ...) (*v2.User, error)
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 NewClient ¶
func NewClient(opts ...option.RequestOption) *Client
func (*Client) Add ¶
func (c *Client) Add( ctx context.Context, request *v2.CreateUserRequest, opts ...option.RequestOption, ) (*v2.User, error)
Add a user.
func (*Client) Delete ¶
func (c *Client) Delete( ctx context.Context, userID string, opts ...option.RequestOption, ) (*v2.SuccessResponse, error)
delete user by id
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, userID string, opts ...option.RequestOption, ) (*v2.User, error)
Get a user.
func (*Client) GetFacts ¶
func (c *Client) GetFacts( ctx context.Context, userID string, opts ...option.RequestOption, ) (*v2.FactsResponse, error)
Get user facts.
func (*Client) GetSessions ¶
func (c *Client) GetSessions( ctx context.Context, userID string, opts ...option.RequestOption, ) ([]*v2.Session, error)
list all sessions for a user by user id
func (*Client) ListOrdered ¶
func (c *Client) ListOrdered( ctx context.Context, request *v2.UserListOrderedRequest, opts ...option.RequestOption, ) (*v2.UserListResponse, error)
List all users with pagination.
Click to show internal directories.
Click to hide internal directories.