client

package
v0.0.0-...-c99b2d3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToGRPCService

func ConnectToGRPCService(cfg config.Service) *grpc.ClientConn

Creating a new gRPC client connection to specified service.

Types

type Client

type Client struct {
	User  *UserClient
	Code  *CodeClient
	Email *EmailClient
}

Client structure.

func NewClient

func NewClient(cfg config.ServiceConfig) *Client

Creating a new client.

func (*Client) Close

func (c *Client) Close()

Closing a client connections.

type CodeClient

type CodeClient struct {
	v1.UserCodeServiceClient
	// contains filtered or unexported fields
}

Code client structure.

type EmailClient

type EmailClient struct {
	v1.EmailUserServiceClient
	// contains filtered or unexported fields
}

Email client structure.

type UserClient

type UserClient struct {
	v1.UserServiceClient
	// contains filtered or unexported fields
}

User client structure.

Jump to

Keyboard shortcuts

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