userservice

package
v0.0.0-...-2e499f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(host, port string) (*Client, error)

func (*Client) GetUserByName

func (s *Client) GetUserByName(ctx context.Context, name string) (*userpb.UserResponse, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL