user

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 10 Imported by: 1

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 New

func New() *Client

func (*Client) AcceptAgreement

func (c *Client) AcceptAgreement(ctx context.Context, userContext am.UserContext, accepted bool) (oid int, uid int, err error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, userContext am.UserContext, user *am.User) (oid int, uid int, ucid string, err error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, userContext am.UserContext, userID int) (oid int, err error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, userContext am.UserContext, userEmail string) (oid int, user *am.User, err error)

func (*Client) GetByCID

func (c *Client) GetByCID(ctx context.Context, userContext am.UserContext, userCID string) (oid int, user *am.User, err error)

func (*Client) GetByID

func (c *Client) GetByID(ctx context.Context, userContext am.UserContext, userID int) (oid int, user *am.User, err error)

func (*Client) GetWithOrgID

func (c *Client) GetWithOrgID(ctx context.Context, userContext am.UserContext, orgID int, userCID string) (oid int, user *am.User, err error)

func (*Client) Init

func (c *Client) Init(config []byte) error

func (*Client) List

func (c *Client) List(ctx context.Context, userContext am.UserContext, filter *am.UserFilter) (oid int, users []*am.User, err error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration)

func (*Client) Update

func (c *Client) Update(ctx context.Context, userContext am.UserContext, user *am.User, userID int) (oid int, uid int, err error)

Jump to

Keyboard shortcuts

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