Documentation ¶
Index ¶
- type UsersClient
- func (c *UsersClient) CreateUser(ctx context.Context, req *user_v1.CreateUserRequest) (*user_v1.CreateUserResponse, error)
- func (c *UsersClient) FindUserByEmail(ctx context.Context, req *user_v1.FindUserByEmailRequest) (*user_v1.FindUserByEmailResponse, error)
- func (c *UsersClient) FindUserById(ctx context.Context, req *user_v1.FindUserByIdRequest) (*user_v1.FindUserByIdResponse, error)
- type UsersClientInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsersClient ¶
type UsersClient struct {
// contains filtered or unexported fields
}
func NewUsersClient ¶
func NewUsersClient(addr string) (*UsersClient, error)
FIXME ADD LOGGING INTERCEPTOR + RETRY INTERCEPTOR + TIMEOUT INTERCEPTOR ETC.
func (*UsersClient) CreateUser ¶
func (c *UsersClient) CreateUser(ctx context.Context, req *user_v1.CreateUserRequest) (*user_v1.CreateUserResponse, error)
func (*UsersClient) FindUserByEmail ¶
func (c *UsersClient) FindUserByEmail(ctx context.Context, req *user_v1.FindUserByEmailRequest) (*user_v1.FindUserByEmailResponse, error)
func (*UsersClient) FindUserById ¶
func (c *UsersClient) FindUserById(ctx context.Context, req *user_v1.FindUserByIdRequest) (*user_v1.FindUserByIdResponse, error)
type UsersClientInterface ¶
type UsersClientInterface interface { CreateUser(ctx context.Context, req *user_v1.CreateUserRequest) (*user_v1.CreateUserResponse, error) FindUserByEmail(ctx context.Context, req *user_v1.FindUserByEmailRequest) (*user_v1.FindUserByEmailResponse, error) FindUserById(ctx context.Context, req *user_v1.FindUserByIdRequest) (*user_v1.FindUserByIdResponse, error) }
Click to show internal directories.
Click to hide internal directories.