1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-08-31 08:44:16 -04:00
v2fly/external/github.com/lucas-clemente/quic-go/streams_map_generic_helper.go

18 lines
515 B
Go
Raw Normal View History

2018-11-20 17:51:25 -05:00
package quic
2018-11-23 11:04:53 -05:00
import (
2019-01-17 09:33:18 -05:00
"v2ray.com/core/external/github.com/cheekybits/genny/generic"
2018-11-23 11:04:53 -05:00
2019-01-17 09:33:18 -05:00
"v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol"
2018-11-23 11:04:53 -05:00
)
2018-11-20 17:51:25 -05:00
// In the auto-generated streams maps, we need to be able to close the streams.
// Therefore, extend the generic.Type with the stream close method.
// This definition must be in a file that Genny doesn't process.
type item interface {
generic.Type
closeForShutdown(error)
}
2018-11-23 11:04:53 -05:00
const streamTypeGeneric protocol.StreamType = protocol.StreamTypeUni