proto

package
v0.6.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternalServer = status.Error(codes.Internal, "errors.general.internal_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