Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ArchiveAccount(ctx context.Context, accountId uint32) error
- func (c *Client) AuthenticateAccount(ctx context.Context, email, password string) (string, error)
- func (c *Client) CreateAccount(ctx context.Context, email, password string) (uint32, error)
- func (c *Client) GetAccount(ctx context.Context, accountId uint32) (*proto.Account, error)
- func (c *Client) LockAccount(ctx context.Context, accountId uint32) error
- func (c *Client) LogoutAccount(ctx context.Context, accountId uint32) error
- func (c *Client) UnlockAccount(ctx context.Context, accountId uint32) error
- func (c *Client) UpdateAccount(ctx context.Context, accountId uint32, email string) error
Constants ¶
View Source
const NON_EXISTENT_ACCOUNT_ID uint32 = 10000
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(conn *grpc.ClientConn, timeout time.Duration) *Client
NewClient instantiates a new instance of the service's client
func (*Client) ArchiveAccount ¶
ArchiveAccount archives an account
func (*Client) AuthenticateAccount ¶
AuthenticateAccount attempts to authenticate an account via the auto generate grpc client
func (*Client) CreateAccount ¶
CreateAccount creates an account via the grpc client
func (*Client) GetAccount ¶
GetAccount obtains an account from the authentication service by account Id
func (*Client) LockAccount ¶
LockAccount locks an account
func (*Client) LogoutAccount ¶
LogoutAccount logs out an account
func (*Client) UnlockAccount ¶
UnlockAccount unlocks an account
Click to show internal directories.
Click to hide internal directories.