grpc

package
v0.0.0-...-7f86f56 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

gRPC server handler structure.

func NewHandler

func NewHandler(service *service.Service) *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