Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GatewayUserConverter ¶
type GatewayUserConverter struct {
// contains filtered or unexported fields
}
GatewayUserConverter converts usernames and ids using the gateway.
func NewGatewayUserConverter ¶
func NewGatewayUserConverter(gwAddr string) *GatewayUserConverter
NewGatewayUserConverter returns a instance of GatewayUserConverter.
func (*GatewayUserConverter) UserIDToUserName ¶
func (c *GatewayUserConverter) UserIDToUserName(ctx context.Context, userid *userpb.UserId) (string, error)
UserIDToUserName converts a user ID to an username.
func (*GatewayUserConverter) UserNameToUserID ¶
func (c *GatewayUserConverter) UserNameToUserID(ctx context.Context, username string) (*userpb.UserId, error)
UserNameToUserID converts a username to an user ID.
Click to show internal directories.
Click to hide internal directories.