grpc

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterContextUpdateService

func RegisterContextUpdateService(grpcServer *grpc.Server, srv interface{})

func RegisterStatusNotifyService

func RegisterStatusNotifyService(grpcServer *grpc.Server, srv interface{})

func StartGrpcServer

func StartGrpcServer(defaultName, envName string, defaultPort int, registerFn func(*grpc.Server, interface{}), srv interface{}) error

Types

type GrpcServer

type GrpcServer struct {
	Port           int
	Serve          func(net.Listener) error
	ListenAndServe func() error
	Shutdown       func(context.Context) error
}

func NewGrpcServer

func NewGrpcServer(defaultName, envName string, defaultPort int, registerFn func(*grpc.Server, interface{}), srv interface{}) (*GrpcServer, error)

Jump to

Keyboard shortcuts

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