MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Go

Method Go

tools/mage/proto.go:165–173  ·  view source on GitHub ↗

Go generates Go protos.

(context.Context)

Source from the content-addressed store, hash-verified

163
164// Go generates Go protos.
165func (p Proto) Go(context.Context) error {
166 mg.Deps(p.golang, p.golangGrpc, p.fieldMask, p.grpcGateway, p.json, p.flags)
167
168 ttnpb, err := filepath.Abs(filepath.Join("pkg", "ttnpb"))
169 if err != nil {
170 return fmt.Errorf("failed to construct absolute path to pkg/ttnpb: %w", err)
171 }
172 return runGoTool(gofumpt, "-w", ttnpb)
173}
174
175// GoClean removes generated Go protos.
176func (p Proto) GoClean(context.Context) error {

Callers 10

handleConnectionMethod · 0.80
TestFrontendFunction · 0.80
subscribeEventDataMethod · 0.80
fromSubscribersMethod · 0.80
SubscribeWithHistoryMethod · 0.80
StreamMethod · 0.80
TestBackendFunction · 0.80
events.goFile · 0.80

Calls 4

runGoToolFunction · 0.85
JoinMethod · 0.65
ErrorfMethod · 0.65
DepsMethod · 0.45

Tested by 2

TestFrontendFunction · 0.64
TestBackendFunction · 0.64