instance

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: figure out what the directory needs as a tenant ID.
	InstanceIDHeader = grpcutil.HeaderAsertoTenantID
)

Functions

func ExtractID

func ExtractID(ctx context.Context) string

func GetInstanceLogger

func GetInstanceLogger(ctx context.Context, log *zerolog.Logger) *zerolog.Logger

Types

type CtxKey

type CtxKey string

type IDMiddleware

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

func NewIDMiddleware

func NewIDMiddleware(cfg *config.Common) *IDMiddleware

func (*IDMiddleware) AsGRPCOptions

func (m *IDMiddleware) AsGRPCOptions() []grpc.ServerOption

func (*IDMiddleware) Stream

func (*IDMiddleware) Unary

Jump to

Keyboard shortcuts

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