metadata

package
v18.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ClientContextMetadataKey = "gitaly-client-context-bin"

ClientContextMetadataKey is the key used by rails to propagate client context back to internal APIs

Variables

This section is empty.

Functions

func AppendToIncomingContext

func AppendToIncomingContext(ctx context.Context, key, value string) context.Context

AppendToIncomingContext appends a key/value pair to the incoming context

func GetValue

func GetValue(ctx context.Context, key string) string

GetValue returns the first value in the metadata slice based on a key

func IncomingToOutgoing

func IncomingToOutgoing(ctx context.Context) context.Context

IncomingToOutgoing creates an outgoing context out of an incoming context with the same storage metadata

func OutgoingToIncoming

func OutgoingToIncoming(ctx context.Context) context.Context

OutgoingToIncoming creates an incoming context out of an outgoing context with the same storage metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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