diff --git a/common/kafka/config.go b/common/kafka/config.go index 89816955..9e611f3e 100644 --- a/common/kafka/config.go +++ b/common/kafka/config.go @@ -82,10 +82,14 @@ func (v Version) MarshalText() ([]byte, error) { type SASLMechanism int const ( - SASLNone SASLMechanism = iota // SASLNone means no user authentication - SASLPlainText // SASLPlainText means user/password in plain text - SASLSCRAMSHA256 // SASLSCRAMSHA256 enables SCRAM challenge with SHA256 - SASLSCRAMSHA512 // SASLSCRAMSHA512 enables SCRAM challenge with SHA512 + // SASLNone means no user authentication + SASLNone SASLMechanism = iota + // SASLPlainText means user/password in plain text + SASLPlainText + // SASLSCRAMSHA256 enables SCRAM challenge with SHA256 + SASLSCRAMSHA256 + // SASLSCRAMSHA512 enables SCRAM challenge with SHA512 + SASLSCRAMSHA512 ) var saslAlgorithmMap = bimap.New(map[SASLMechanism]string{ diff --git a/inlet/metadata/provider/gnmi/config.go b/inlet/metadata/provider/gnmi/config.go index 3e074d0e..b1b2c390 100644 --- a/inlet/metadata/provider/gnmi/config.go +++ b/inlet/metadata/provider/gnmi/config.go @@ -73,10 +73,14 @@ type IfSpeedPath struct { type IfSpeedPathUnit int const ( - SpeedBits IfSpeedPathUnit = iota + 1 // SpeedBits means the speed is in bps - SpeedMegabits // SpeedMegabits means the speed is in Mbps - SpeedEthernet // SpeedEthernet means the speed is in OC ETHERNET_SPEED - SpeedHuman // SpeedHuman means the speed is human-formatted (10G) + // SpeedBits means the speed is in bps + SpeedBits IfSpeedPathUnit = iota + 1 + // SpeedMegabits means the speed is in Mbps + SpeedMegabits + // SpeedEthernet means the speed is in OC ETHERNET_SPEED + SpeedEthernet + // SpeedHuman means the speed is human-formatted (10G) + SpeedHuman ) var ifSpeedPathUnitMap = bimap.New(map[IfSpeedPathUnit]string{