metadata

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metadata provides metadata for RPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func With

func With(ctx context.Context, md Metadata) context.Context

With creates a new context with the given Metadata.

Types

type Metadata

type Metadata struct {
	// APIKey is the public key from the client. It is used to find the project.
	APIKey string

	// Authorization is the authorization of the request.
	Authorization string
}

Metadata represents the metadata of the request.

func From

func From(ctx context.Context) Metadata

From returns the metadata from the given context.

Jump to

Keyboard shortcuts

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