grpc

package
v0.0.0-...-1a64ad2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: AGPL-3.0 Imports: 7 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 {
	User *UserClient
	Post *PostClient
}

gRPC clients structure.

func NewClient

func NewClient(cfg config.ServiceConfig) *Client

Creating a new gRPC client.

func (*Client) Close

func (c *Client) Close()

Closing a gRPC client connections.

type PostClient

type PostClient struct {
	Post v1.PostServiceClient
	// contains filtered or unexported fields
}

Post clients structure.

type UserClient

type UserClient struct {
	Auth v1.UserAuthServiceClient
	User v1.UserServiceClient
	Code v1.UserCodeServiceClient
	// contains filtered or unexported fields
}

User clients structure.

Jump to

Keyboard shortcuts

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