github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/enums/mqtt_qos.go (about)

     1  package enums
     2  
     3  //go:generate toolkit gen enum MqttQOS
     4  type MqttQOS int8
     5  
     6  const (
     7  	MQTT_QOS_UNKNOWN        MqttQOS = iota - 1
     8  	MQTT_QOS__ONCE                  // 0
     9  	MQTT_QOS__AT_LEAST_ONCE         // 1
    10  	MQTT_QOS__ONLY_ONCE             // 2
    11  )
    12  
    13  // func (QoS) Offset() int { return -1 }