MCPcopy Create free account
hub / github.com/kataras/iris / wrapIDGenerator

Function wrapIDGenerator

websocket/websocket.go:143–149  ·  view source on GitHub ↗
(idGen IDGenerator)

Source from the content-addressed store, hash-verified

141type IDGenerator func(*context.Context) string
142
143func wrapIDGenerator(idGen IDGenerator) func(ctx *context.Context) neffos.IDGenerator {
144 return func(ctx *context.Context) neffos.IDGenerator {
145 return func(w http.ResponseWriter, r *http.Request) string {
146 return idGen(ctx)
147 }
148 }
149}
150
151// Handler returns an Iris handler to be served in a route of an Iris application.
152// Accepts the neffos websocket server as its first input argument

Callers 1

UpgradeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…