Documentation
¶
Index ¶
- type Client
- func (s *Client) GetUserByName(ctx context.Context, name string) (*userpb.UserResponse, error)
- func (s *Client) LoginUser(ctx context.Context, name string, password string) (*userpb.UserResponse, error)
- func (s *Client) RegisterUser(ctx context.Context, name string, password string) (*userpb.UserResponse, 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
}
func (*Client) GetUserByName ¶
get user from service by username
func (*Client) LoginUser ¶
func (s *Client) LoginUser(ctx context.Context, name string, password string) (*userpb.UserResponse, error)
login user
func (*Client) RegisterUser ¶
func (s *Client) RegisterUser(ctx context.Context, name string, password string) (*userpb.UserResponse, error)
register user
Click to show internal directories.
Click to hide internal directories.