metadata

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: Apache-2.0 Imports: 1 Imported by: 19

Documentation

Overview

Package metadata is a way of defining message headers

Index

Constants

View Source
const Method = "method"

Method is the key for the RPC Method.

View Source
const Service = "service"

Service is the key for the RPC Service.

Variables

This section is empty.

Functions

func Incoming

func Incoming(ctx context.Context) (map[string]string, bool)

Incoming retrieves incoming metadata from the context.

func Outgoing

func Outgoing(ctx context.Context) (map[string]string, bool)

Outgoing retrieves outgoing metadata from the context.

func WithIncoming

func WithIncoming(ctx context.Context) (context.Context, map[string]string)

WithIncoming sets metadata as value to the context and returns context as well as the metadata.

func WithOutgoing

func WithOutgoing(ctx context.Context) (context.Context, map[string]string)

WithOutgoing sets metadata as value to the context and returns context as well as the metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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