Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) CreateKey(ctx context.Context, keyType pb.KeyType) (*pb.GetKeyReply, error)
- func (c *Client) CreateOrg(ctx context.Context, name string) (*pb.GetOrgReply, error)
- func (c *Client) DestroyAccount(ctx context.Context) error
- func (c *Client) GetOrg(ctx context.Context) (*pb.GetOrgReply, error)
- func (c *Client) GetSessionInfo(ctx context.Context) (*pb.GetSessionInfoReply, error)
- func (c *Client) InvalidateKey(ctx context.Context, key string) error
- func (c *Client) InviteToOrg(ctx context.Context, email string) (*pb.InviteToOrgReply, error)
- func (c *Client) IsOrgNameAvailable(ctx context.Context, name string) (*pb.IsOrgNameAvailableReply, error)
- func (c *Client) IsUsernameAvailable(ctx context.Context, username string) error
- func (c *Client) LeaveOrg(ctx context.Context) error
- func (c *Client) ListKeys(ctx context.Context) (*pb.ListKeysReply, error)
- func (c *Client) ListOrgs(ctx context.Context) (*pb.ListOrgsReply, error)
- func (c *Client) RemoveOrg(ctx context.Context) error
- func (c *Client) Signin(ctx context.Context, usernameOrEmail string) (*pb.SigninReply, error)
- func (c *Client) Signout(ctx context.Context) error
- func (c *Client) Signup(ctx context.Context, username, email string) (*pb.SignupReply, 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
}
Client provides the client api.
func NewClient ¶
func NewClient(target string, opts ...grpc.DialOption) (*Client, error)
NewClient starts the client.
func (*Client) DestroyAccount ¶ added in v1.0.2
DestroyAccount completely deletes an account and all associated data.
func (*Client) GetSessionInfo ¶
GetSessionInfo returns session info.
func (*Client) InvalidateKey ¶
InvalidateKey marks a key as invalid. New threads cannot be created with an invalid key.
func (*Client) InviteToOrg ¶
InviteToOrg invites the given email to an org.
func (*Client) IsOrgNameAvailable ¶
func (c *Client) IsOrgNameAvailable(ctx context.Context, name string) (*pb.IsOrgNameAvailableReply, error)
IsOrgNameAvailable returns a nil error if the name is valid and available.
func (*Client) IsUsernameAvailable ¶
IsUsernameAvailable returns a nil error if the username is valid and available.
func (*Client) Signin ¶
Signin returns a session for an existing username or email. This method will block and wait for email-based verification.
Click to show internal directories.
Click to hide internal directories.