streams_map_generic_helper.go 467 B

1234567891011121314151617
  1. package quic
  2. import (
  3. "github.com/cheekybits/genny/generic"
  4. "github.com/lucas-clemente/quic-go/internal/protocol"
  5. )
  6. // In the auto-generated streams maps, we need to be able to close the streams.
  7. // Therefore, extend the generic.Type with the stream close method.
  8. // This definition must be in a file that Genny doesn't process.
  9. type item interface {
  10. generic.Type
  11. closeForShutdown(error)
  12. }
  13. const streamTypeGeneric protocol.StreamType = protocol.StreamTypeUni