server

package
v0.0.0-...-a58579d Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithGrpcPort

func WithGrpcPort(p int) withGrpcPort

func WithGrpcServerOption

func WithGrpcServerOption(serverOpts ...grpc.ServerOption) grpcServerOption

func WithInterceptor

func WithInterceptor(unary []grpc.UnaryServerInterceptor, stream []grpc.StreamServerInterceptor) interceptorConfigure

func WithLogger

func WithLogger(logger pkglogger.Logger) serverLogger

Types

type GrpcServer

type GrpcServer struct {
	*grpc.Server
	// contains filtered or unexported fields
}

func NewGrpcServer

func NewGrpcServer(cfgs ...GrpcServerConfigurer) *GrpcServer

func (*GrpcServer) GracefulStop

func (g *GrpcServer) GracefulStop()

func (*GrpcServer) ListenAndServe

func (g *GrpcServer) ListenAndServe() error

func (*GrpcServer) LocalAddr

func (g *GrpcServer) LocalAddr() (string, error)

type GrpcServerConfigurer

type GrpcServerConfigurer interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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