* Custom Context Pool */ Create the context sync pool for our custom context, the pool must implement Acquire() T and Release(T) methods to satisfy the iris.ContextPool interface.
| 36 | // Create the context sync pool for our custom context, |
| 37 | // the pool must implement Acquire() T and Release(T) methods to satisfy the iris.ContextPool interface. |
| 38 | type myCustomContextPool struct { |
| 39 | pool sync.Pool |
| 40 | } |
| 41 | |
| 42 | // Acquire returns a new custom context from the pool. |
| 43 | func (p *myCustomContextPool) Acquire(ctx iris.Context) *myCustomContext { |
nothing calls this directly
no outgoing calls
no test coverage detected