Debian Codegraph @

cmd/protoc-gen-yarpc/main.go

raw symbols SCIP
1 package main
2
3 import (
4 "github.com/gogo/protobuf/vanity/command"
5 "github.com/influxdata/yarpc/cmd/protoc-gen-yarpc/generator"
6 "github.com/influxdata/yarpc/cmd/protoc-gen-yarpc/yarpc"
7 )
8
9 func main() {
10 g := generator.New()
11 g.Request = command.Read()
12 g.Suffix = ".yarpc.go"
13 g.CommandLineParameters(g.Request.GetParameter())
14
15 // Create a wrapped version of the Descriptors and EnumDescriptors that
16 // point to the file that defines them.
17 g.WrapTypes()
18
19 g.SetPackageNames()
20 g.BuildTypeNameMap()
21
22 p := &yarpc.Plugin{}
23 g.GeneratePlugin(p)
24
25 command.Write(g.Response)
26 }