chore: add missing comments

This commit is contained in:
Juan Pablo Villafáñez
2025-03-19 12:35:13 +01:00
committed by Jörn Friedrich Dreyer
parent f035f3ce6e
commit e7a6d9923c

View File

@@ -8,12 +8,14 @@ import (
// NType is an enum type for the different types of NATS connections
type NType int
// Enum values for NType
const (
NTypeBus NType = iota
NTypeKeyValue
NTypeRegistry
)
// String returns the string representation of a NType
func (n NType) String() string {
return []string{"bus", "kv", "reg"}[n]
}