MCPcopy
hub / github.com/grpc/grpc-go / funcServerOption

Struct funcServerOption

server.go:218–220  ·  view source on GitHub ↗

funcServerOption wraps a function that modifies serverOptions into an implementation of the ServerOption interface.

Source from the content-addressed store, hash-verified

216// funcServerOption wraps a function that modifies serverOptions into an
217// implementation of the ServerOption interface.
218type funcServerOption struct {
219 f func(*serverOptions)
220}
221
222func (fdo *funcServerOption) apply(do *serverOptions) {
223 fdo.f(do)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected