mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
chore: add missing comments
This commit is contained in:
@@ -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]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user