(idGen IDGenerator)
| 141 | type IDGenerator func(*context.Context) string |
| 142 | |
| 143 | func 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…