Documentation

Overview

Command svcmux reads a service interface XYZServer generated by protoc and generates VersionedXYZV struct that stores a map version->implementation, and a default version. Each method forwards a request to the implementation of the requested version.

Example of usage:

//go:generate svcmux -type GreetServer