MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / getEndpoint

Method getEndpoint

fs/contube/http.go:84–89  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

82}
83
84func (f *HttpTubeFactory) getEndpoint(endpoint string) (*endpointHandler, bool) {
85 f.mu.RLock()
86 defer f.mu.RUnlock()
87 e, ok := f.endpoints[endpoint]
88 return e, ok
89}
90
91func (f *HttpTubeFactory) Handle(ctx context.Context, endpoint string, record Record) error {
92 e, ok := f.getEndpoint(endpoint)

Callers 1

HandleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected