github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/protocol/priority.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package protocol
     4  
     5  // Priority indicate to use by any queue systems like connection and stream to implement priority/weight mechanism.
     6  type Priority uint8
     7  
     8  // Priorities
     9  const (
    10  	Priority_Unset         Priority = iota
    11  	Priority_TimeSensitive          // Call related service in each received packet. VoIP, IPTV, Sensors data, ...
    12  	Priority_Normal
    13  	Priority_Low
    14  	Priority_Lower
    15  	// TODO::: add more priorities
    16  	Priority_Lowest Priority = 255
    17  )