grpcserver

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

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

func New

func New(log Logger, name string, opts ...GRPCServerOption) GRPCServer

New creates a new GRPCServer that is bound to a specific GRPC API. This object complies with the standard Listener service and can be managed by the startup.Listeners object.

func (*GRPCServer) Listen

func (g *GRPCServer) Listen() error

func (*GRPCServer) Shutdown

func (g *GRPCServer) Shutdown(_ context.Context) error

func (*GRPCServer) String

func (g *GRPCServer) String() string

type GRPCServerOption

type GRPCServerOption func(*GRPCServer)

func WithAppendedInterceptor

func WithAppendedInterceptor(i grpcUnaryServerInterceptor) GRPCServerOption

func WithPrependedInterceptor

func WithPrependedInterceptor(i grpcUnaryServerInterceptor) GRPCServerOption

func WithReflection added in v0.10.0

func WithReflection(r bool) GRPCServerOption

func WithRegisterServer

func WithRegisterServer(r RegisterServer) GRPCServerOption

func WithoutHealth added in v0.10.0

func WithoutHealth() GRPCServerOption

type Logger

type Logger = logger.Logger

type RegisterServer

type RegisterServer func(*grpcServer)

Jump to

Keyboard shortcuts

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