user

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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.

func (*Client) Update

func (c *Client) Update(
	ctx context.Context,

	userID string,
	request *v2.UpdateUserRequest,
	opts ...option.RequestOption,
) (*v2.User, error)

Update a user.

Jump to

Keyboard shortcuts

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