proto

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GenericInternalServerError = status.Error(codes.Internal, "Internal server error")
)

Functions

func InterceptorLogger

func InterceptorLogger(l *zap.Logger) logging.Logger

InterceptorLogger adapts zap logger to interceptor logger. This code is simple enough to be copied and not imported.

func NewGRPCServer

func NewGRPCServer(ctx context.Context, logger *zap.Logger, db *sql.DB, tp *tracesdk.TracerProvider, tm *auth.TokenMgr, p perms.Permissions, aud audit.IAuditer, eventus *events.Eventus, notif notifi.INotifi) (*grpc.Server, net.Listener)

Types

type RegisterFunc

type RegisterFunc func() error

Jump to

Keyboard shortcuts

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