Documentation ¶
Index ¶
- func New(ctx context.Context, m map[string]interface{}) (invite.Repository, error)
- type Client
- func (c *Client) AddRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUser *userpb.User) error
- func (c *Client) AddToken(ctx context.Context, token *invitepb.InviteToken) error
- func (c *Client) DeleteRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUser *userpb.UserId) error
- func (c *Client) FindRemoteUsers(ctx context.Context, initiator *userpb.UserId, attr string) ([]*userpb.User, error)
- func (c *Client) GetRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUserID *userpb.UserId) (*userpb.User, error)
- func (c *Client) GetToken(ctx context.Context, token string) (*invitepb.InviteToken, error)
- func (c *Client) ListTokens(ctx context.Context, initiator *userpb.UserId) ([]*invitepb.InviteToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Config *config HTTPClient *http.Client GatewayClient gatewayv1beta1.GatewayAPIClient }
Client is an API client.
func (*Client) AddRemoteUser ¶
func (c *Client) AddRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUser *userpb.User) error
AddRemoteUser stores the remote user.
func (*Client) DeleteRemoteUser ¶
func (c *Client) DeleteRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUser *userpb.UserId) error
DeleteRemoteUser removes from the remote user from the initiator's list.
func (*Client) FindRemoteUsers ¶
func (c *Client) FindRemoteUsers(ctx context.Context, initiator *userpb.UserId, attr string) ([]*userpb.User, error)
FindRemoteUsers finds remote users who have accepted invites based on their attributes.
func (*Client) GetRemoteUser ¶
func (c *Client) GetRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUserID *userpb.UserId) (*userpb.User, error)
GetRemoteUser retrieves details about a remote user who has accepted an invite to share.
func (*Client) ListTokens ¶
Click to show internal directories.
Click to hide internal directories.