MCPcopy Create free account
hub / github.com/bufbuild/buf-examples / checkRPCSuffix

Function checkRPCSuffix

bsr/buf-check-plugin/example-go-code/main.go:43–53  ·  view source on GitHub ↗
(
	_ context.Context,
	responseWriter check.ResponseWriter,
	_ check.Request,
	methodDescriptor protoreflect.MethodDescriptor,
)

Source from the content-addressed store, hash-verified

41}
42
43func checkRPCSuffix(
44 _ context.Context,
45 responseWriter check.ResponseWriter,
46 _ check.Request,
47 methodDescriptor protoreflect.MethodDescriptor,
48) error {
49 responseWriter.AddAnnotation(
50 check.WithMessage("hello world"),
51 )
52 return nil
53}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected