server

package
v0.0.0-...-e78ca02 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInterceptor

type AuthInterceptor interface {
	selector.Matcher
	AuthFunc(ctx context.Context) (context.Context, error)
}

type GrpcController

type GrpcController interface {
	ServiceName() string
	RegisterService(srv *grpc.Server)
}

type GrpcServer

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

func NewGrpcServer

func NewGrpcServer(
	cfg *config.ServerConfig,
	logger logging.Logger,
	authInterceptor AuthInterceptor,
) *GrpcServer

func (*GrpcServer) GracefulStop

func (s *GrpcServer) GracefulStop()

func (*GrpcServer) ListenAndServe

func (s *GrpcServer) ListenAndServe(address string)

func (*GrpcServer) RegisterController

func (s *GrpcServer) RegisterController(controller GrpcController)

type InterceptorLogger

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

func (*InterceptorLogger) Log

func (i *InterceptorLogger) Log(_ context.Context, level grpclogging.Level, msg string, fields ...any)

Jump to

Keyboard shortcuts

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