grpcserver

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...ServerOption) (server.IServer, error)

Types

type Server

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

func (*Server) Run

func (s *Server) Run() error

type ServerOption

type ServerOption func(s *Server)

func WithServerHealthServer

func WithServerHealthServer(healthServer grpc_health_v1.HealthServer) ServerOption

func WithServerOptionOnStart added in v1.2.6

func WithServerOptionOnStart(onStart func()) ServerOption

func WithServerOptionOnStop added in v1.2.6

func WithServerOptionOnStop(onStop func()) ServerOption

func WithServerOptionPost

func WithServerOptionPost(post int) ServerOption

func WithServerOptionSignal

func WithServerOptionSignal(signals []os.Signal) ServerOption

func WithServerOptionTimeout

func WithServerOptionTimeout(timeout time.Duration) ServerOption

func WithServerRegisterServer

func WithServerRegisterServer(registerServer func(server *grpc.Server)) ServerOption

func WithServerServerOptions

func WithServerServerOptions(serverOptions []grpc.ServerOption) ServerOption

func WithServerStreamServerInterceptors

func WithServerStreamServerInterceptors(streamServerInterceptors []grpc.StreamServerInterceptor) ServerOption

func WithServerUnaryServerInterceptors

func WithServerUnaryServerInterceptors(unaryServerInterceptors []grpc.UnaryServerInterceptor) ServerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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