luci: Index | Files

package svcmux

import ""

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


Package Files



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 2020-12-06. Refresh now. Tools for package owners.