MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / PrettyName

Method PrettyName

pkg/ttnpb/rights.go:212–218  ·  view source on GitHub ↗

PrettyName returns the key ID (Name if present)

()

Source from the content-addressed store, hash-verified

210
211// PrettyName returns the key ID (Name if present)
212func (m *APIKey) PrettyName() string {
213 identifier := m.GetId()
214 if name := m.GetName(); name != "" {
215 identifier = fmt.Sprintf("%v (%v)", identifier, name)
216 }
217 return identifier
218}

Callers

nothing calls this directly

Calls 2

GetIdMethod · 0.95
GetNameMethod · 0.95

Tested by

no test coverage detected