grpc

package
v0.0.0-...-455cc0d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: AGPL-3.0 Imports: 15 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{ Email v1.EmailUserServiceClient }

gRPC client structure.

func NewClient

func NewClient(cfg config.ServiceConfig) *Client

Creating a new gRPC client.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

gRPC server handler structure.

func NewHandler

func NewHandler(service *service.Service, cfg config.ServiceConfig) *Handler

Creating a new gRPC handler.

func (*Handler) RegisterHandlers

func (h *Handler) RegisterHandlers(srv *grpc.Server)

Registering gRPC version handlers.

type Server

type Server struct {
	// contains filtered or unexported fields
}

gRPC server structure.

func NewServer

func NewServer(cfg config.GRPCConfig, handler *Handler) *Server

Creating a new gRPC server.

func (*Server) Run

func (s *Server) Run()

Running gRPC server.

func (*Server) Stop

func (s *Server) Stop()

Stopping gRPC server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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