github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/conf/mqtt/qos.go (about)

     1  package mqtt
     2  
     3  //go:generate toolkit gen enum QOS
     4  type QOS int8
     5  
     6  const (
     7  	QOS_UNKNOWN        QOS = iota - 1
     8  	QOS__ONCE              // 0
     9  	QOS__AT_LEAST_ONCE     // 1
    10  	QOS__ONLY_ONCE         // 2
    11  )
    12  
    13  // func (QoS) Offset() int { return -1 }