MCPcopy Create free account
hub / github.com/pace/bricks / main

Function main

tools/testserver/simplemath/main.go:54–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func main() {
55 l := log.Logger()
56 ms := &SimpleMathServer{}
57 gs := grpc.Server(&GrpcAuthBackend{}, log.InterceptorLogger(l))
58 math.RegisterMathServiceServer(gs, ms)
59
60 err := grpc.ListenAndServe(gs)
61 if err != nil {
62 log.Fatal(err)
63 }
64}

Callers

nothing calls this directly

Calls 6

LoggerFunction · 0.92
ServerFunction · 0.92
InterceptorLoggerFunction · 0.92
ListenAndServeFunction · 0.92
FatalFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…