grpc

package
v0.0.0-...-7706d81 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: AGPL-3.0 Imports: 9 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()

Stoping gRPC server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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