grpcmetadata

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package grpcmetadata contains functions for reading and writing waypoint specific metadata to contexts, which is transmitted by RPC calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRunner

func AddRunner(ctx context.Context, id string) context.Context

AddRunner adds gRPC metadata to indicate that that RPCs sent with the returned context having the given runner (specified by id) attached to the sending client, allow the server to target jobs back to the client that performed an RPC call.

func RunnerId

func RunnerId(ctx context.Context) (string, bool)

Returns the runner id attached to the context as grpc Metadata. This would be set by the client to indicate there is a runner attached directly to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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