Documentation ¶ Index ¶ func With(ctx context.Context, md Metadata) context.Context type Metadata func From(ctx context.Context) Metadata 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. Source Files ¶ View all Source files context.go Click to show internal directories. Click to hide internal directories.