luci: go.chromium.org/luci/grpc/svcmux Index | Files

package svcmux

import "go.chromium.org/luci/grpc/svcmux"

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

Index

Package Files

svcmux.go

Constants

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

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

func GetServiceVersion Uses

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

GetServiceVersion extracts requested service version from metadata in c.

func NoImplementation Uses

func NoImplementation(version string) error

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

Package svcmux imports 4 packages (graph) and is imported by 3 packages. Updated 2018-12-19. Refresh now. Tools for package owners.