bufrpc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package bufrpc provides buf-specific rpc functionality.

Index

Constants

View Source
const (
	// DefaultRemote is the default remote if none can be inferred from a module name.
	DefaultRemote = "buf.build"
)

Variables

This section is empty.

Functions

func GetIncomingCLIVersionHeader

func GetIncomingCLIVersionHeader(ctx context.Context) string

GetIncomingCLIVersionHeader gets the CLI version from the context for rpc.

Returns empty if no CLI version is attached to the context.

func WithOutgoingCLIVersionHeader

func WithOutgoingCLIVersionHeader(ctx context.Context, cliVersion string) context.Context

WithOutgoingCLIVersionHeader attaches the given CLI version to the context for rpc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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