github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/priority_setting/priorities.go (about) 1 package priority_setting 2 3 import "github.com/danielpfeifer02/quic-go-prio-packs/internal/protocol" 4 5 type Priority protocol.Priority 6 7 var ( 8 // TODO: NoPriority equal to zero so that empty structs that don't init a prio automatically get no priority? 9 NoPriority Priority = 0 10 LowPriority Priority = 1 11 HighPriority Priority = 2 12 13 LowestPriority int8 = int8(LowPriority) 14 NumberOfPriorities int = 2 15 ) 16 17 // PRIO_PACKS_TAG 18 // TODOME: maybe add possibility of more specifc prio handling 19 // e.g. for different packet types 20 var ( 21 PrioRetryPacket Priority = HighPriority 22 PrioConnectionClosePacket Priority = HighPriority 23 PrioCoalescedPacket Priority = HighPriority 24 PrioAppendPacket Priority = HighPriority 25 PrioProbePacket Priority = HighPriority 26 PrioMTUProbePacket Priority = HighPriority 27 PrioLongHeaderPacket Priority = HighPriority 28 )