github.com/ooni/psiphon/tunnel-core@v0.0.0-20230105123940-fe12a24c96ee/oovendor/quic-go/streams_map_generic_helper.go (about) 1 package quic 2 3 import ( 4 "github.com/cheekybits/genny/generic" 5 6 "github.com/ooni/psiphon/tunnel-core/oovendor/quic-go/internal/protocol" 7 ) 8 9 // In the auto-generated streams maps, we need to be able to close the streams. 10 // Therefore, extend the generic.Type with the stream close method. 11 // This definition must be in a file that Genny doesn't process. 12 type item interface { 13 generic.Type 14 updateSendWindow(protocol.ByteCount) 15 closeForShutdown(error) 16 } 17 18 const streamTypeGeneric protocol.StreamType = protocol.StreamTypeUni