server

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: AGPL-3.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "proto"

Name is the name registered for the proto compressor.

Variables

This section is empty.

Functions

func DefaultCodeToLevelGRPC added in v0.0.31

func DefaultCodeToLevelGRPC(c codes.Code) grpc_logging.Level

DefaultCodeToLevelGRPC is the helper mapper that maps gRPC Response codes to log levels.

func Handle

func Handle(ctx context.Context, reg *prometheus.Registry) http.Handler

func InterceptorLogger added in v0.0.31

func InterceptorLogger() grpc_logging.Logger

func Run added in v0.0.8

func Run(ctx context.Context, resources ResourceList) error

func Serve

func Serve(o *config.Options, x *cli.Context) error

Types

type ResourceList added in v0.0.8

type ResourceList []io.Closer

func Configure added in v0.0.8

func (ResourceList) Close added in v0.0.8

func (r ResourceList) Close() error

func (ResourceList) CloseWithGrace added in v0.0.28

func (r ResourceList) CloseWithGrace(ctx context.Context) error

type Vince added in v0.0.31

type Vince struct {
	http.Server
	*prober.GRPCProbe
	*prometheus.Registry
}

func New added in v0.0.31

func New(ctx context.Context) *Vince

Jump to

Keyboard shortcuts

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