grpc_server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloserFunc

type CloserFunc func()

type ControllerRegister

type ControllerRegister interface {
	Register(grpcServer grpc.ServiceRegistrar)
}

func NewControllerRegister

func NewControllerRegister(controller porker.PorkerServiceServer) ControllerRegister

func NewHealthRegister

func NewHealthRegister(memDBCli gateways.MemDBClient) ControllerRegister

type ControllerRegisters

type ControllerRegisters []ControllerRegister

type GRPCServer

type GRPCServer interface {
	RunGRPCServer(ctx context.Context)
}

func NewGRPCServer

func NewGRPCServer(
	logger *zap.Logger,
	port string,
	isDevelop bool,
	controllerRegisters ControllerRegisters,
	initFunction InitFunc,
	closerFunction CloserFunc,
) GRPCServer

type InitFunc

type InitFunc func()

Jump to

Keyboard shortcuts

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