grpccontext

package
v0.0.0-...-e158608 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRequestId

func SetRequestId(ctx context.Context, requestId string) context.Context

func SetUser

func SetUser(ctx context.Context, user *model.SignedInUser) context.Context

Types

type GRPCServerContext

type GRPCServerContext struct {
	SignedInUser *model.SignedInUser
	RequestId    string
}

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