chore: add missing comments

This commit is contained in:
Juan Pablo Villafáñez
2025-03-19 12:35:13 +01:00
parent c9ba3b969e
commit 4e42eabeca

View File

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