mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: fix inline comments in exported const blocks
They should not be inline, as this is not supported by godoc. This is reported by revive 1.5.0.
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user