MCPcopy
hub / github.com/SurgeDM/Surge / MockServerOption

FuncType MockServerOption

internal/testutil/mock_server.go:51–51  ·  view source on GitHub ↗

MockServerOption is a function that configures a MockServer.

func(*MockServer)

Source from the content-addressed store, hash-verified

49
50// MockServerOption is a function that configures a MockServer.
51type MockServerOption func(*MockServer)
52
53// WithHandler sets a custom request handler.
54func WithHandler(h http.HandlerFunc) MockServerOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected