OnStreamChunk implements Hook.
(ctx context.Context, execCtx *Context, chunk cliproxyexecutor.StreamChunk)
| 53 | |
| 54 | // OnStreamChunk implements Hook. |
| 55 | func (h HookFunc) OnStreamChunk(ctx context.Context, execCtx *Context, chunk cliproxyexecutor.StreamChunk) { |
| 56 | if h.Stream != nil { |
| 57 | h.Stream(ctx, execCtx, chunk) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // RoundTripperProvider allows injection of custom HTTP transports per auth entry. |
| 62 | type RoundTripperProvider interface { |