From 4e42eabeca4920b161fb98f0949f7b2fadcd0aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Villaf=C3=A1=C3=B1ez?= Date: Wed, 19 Mar 2025 12:35:13 +0100 Subject: [PATCH] chore: add missing comments --- ocis-pkg/generators/natsnames.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocis-pkg/generators/natsnames.go b/ocis-pkg/generators/natsnames.go index a35c9d751b5..7220c1f9c49 100644 --- a/ocis-pkg/generators/natsnames.go +++ b/ocis-pkg/generators/natsnames.go @@ -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] }