grpccontext

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextHandler

type ContextHandler interface {
	SetUser(context.Context, *user.SignedInUser) context.Context
	GetUser(context.Context) *user.SignedInUser
}

func ProvideContextHandler

func ProvideContextHandler(tracer tracing.Tracer) ContextHandler

type GRPCServerContext

type GRPCServerContext struct {
	SignedInUser *user.SignedInUser
	Tracer       tracing.Tracer
	Logger       log.Logger
}

func FromContext

func FromContext(ctx context.Context) *GRPCServerContext

Jump to

Keyboard shortcuts

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