service

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcService

func NewGrpcService(ctx context.Context, service interface{}, descriptors []*grpc.ServiceDesc) (*grpc.Server, error)

NewGrpcService creates a grpc service with various defaults middlewares. Notably, the logging and metrics are automatically registered for sane defaults of observability.

func WithDescriptors

func WithDescriptors(descs ...*grpc.ServiceDesc) []*grpc.ServiceDesc

Types

This section is empty.

Jump to

Keyboard shortcuts

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