user

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT 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) Create

func (c *Client) Create(
	ctx context.Context,
	request *zepgo.CreateUserRequest,
	opts ...option.RequestOption,
) (*zepgo.User, error)

add user by id

func (*Client) Delete

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

	userID string,
	opts ...option.RequestOption,
) (string, error)

delete user by id

func (*Client) Get

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

	userID string,
	opts ...option.RequestOption,
) (*zepgo.User, error)

get user by id

func (*Client) List

func (c *Client) List(
	ctx context.Context,
	request *zepgo.UserListRequest,
	opts ...option.RequestOption,
) ([]*zepgo.User, error)

List all users with pagination.

func (*Client) ListOrdered

func (c *Client) ListOrdered(
	ctx context.Context,
	request *zepgo.UserListOrderedRequest,
	opts ...option.RequestOption,
) ([][]*zepgo.User, error)

list all users

func (*Client) ListSessions

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

	userID string,
	opts ...option.RequestOption,
) ([]*zepgo.Session, error)

list all sessions for a user by user id

func (*Client) Update

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

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

update user by id

Jump to

Keyboard shortcuts

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