MCPcopy Create free account
hub / github.com/HyBuildNet/quic-relay / handlerNames

Method handlerNames

internal/proxy/proxy.go:737–743  ·  view source on GitHub ↗

handlerNames returns the names of all handlers in the chain.

()

Source from the content-addressed store, hash-verified

735
736// handlerNames returns the names of all handlers in the chain.
737func (p *Proxy) handlerNames() []string {
738 var names []string
739 for _, h := range p.chain.Load().Handlers() {
740 names = append(names, h.Name())
741 }
742 return names
743}
744
745// SessionCount returns the number of active sessions.
746// O(1) using atomic counter instead of O(n) iteration.

Callers 1

RunMethod · 0.95

Calls 2

HandlersMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected