1package quic 2 3import ( 4 "github.com/cheekybits/genny/generic" 5 6 "github.com/lucas-clemente/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. 12type item interface { 13 generic.Type 14 updateSendWindow(protocol.ByteCount) 15 closeForShutdown(error) 16} 17 18const streamTypeGeneric protocol.StreamType = protocol.StreamTypeUni 19