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

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package protocol
     4  
     5  // Weight indicate to use by any queue systems like connection and stream to implement priority/weight mechanism.
     6  type Weight uint8
     7  
     8  // Weights
     9  const (
    10  	Weight_Unset Weight = iota
    11  	Weight_Lowest
    12  	Weight_Lower
    13  	Weight_Low
    14  	Weight_Normal
    15  	// TODO::: add more queue for priority weights
    16  	Weight_TimeSensitive Weight = 255 // Call related service in each received packet. VoIP, IPTV, Sensors data, ...
    17  )