Back to godoc.org

Package svcmux

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package svcmux contains utility functions used by code generated by svcmux tool. It is not designed to be used directly.

Index

Constants

const VersionMetadataKey = "X-Luci-Service-Version"

VersionMetadataKey is key in gRPC metadata that specifies requested service version.

func GetServiceVersion

func GetServiceVersion(c context.Context, defaultVer string) string

GetServiceVersion extracts requested service version from metadata in c.

func NoImplementation

func NoImplementation(version string) error

NoImplementation creates an error for a service version that does not have an implementation.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier