Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
func InitClient(ctx context.Context, log logger.Logger, tracer trace.TracerProvider, monitor *monitoring.Monitoring) (*grpc.ClientConn, func(), error)
InitClient - set up a connection to the server.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func SetClientConfig ¶
func SetClientConfig(tracer trace.TracerProvider, monitor *monitoring.Monitoring, log logger.Logger) (*Client, error)
setConfig - set configuration
func (*Client) GetOptions ¶
func (c *Client) GetOptions() []grpc.DialOption
GetOptions - return options for gRPC Client.
type Server ¶
func InitServer ¶
func InitServer(ctx context.Context, log logger.Logger, tracer trace.TracerProvider, monitor *monitoring.Monitoring) (*Server, error)
InitServer - initialize gRPC server
Click to show internal directories.
Click to hide internal directories.