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

Function DefineCorruption

pkg/errors/definitions.go:308–311  ·  view source on GitHub ↗

DefineCorruption is the same as DefineDataLoss.

(name, messageFormat string, publicAttributes ...string)

Source from the content-addressed store, hash-verified

306
307// DefineCorruption is the same as DefineDataLoss.
308func DefineCorruption(name, messageFormat string, publicAttributes ...string) *Definition {
309 def := define(uint32(codes.DataLoss), name, messageFormat, publicAttributes...)
310 return def
311}
312
313// DefineUnauthenticated defines a registered error of type Unauthenticated.
314// It should be used when a client attempts to perform an authenticated action

Callers 15

errors.goFile · 0.92
keywrap.goFile · 0.92
mem.goFile · 0.92
mtls.goFile · 0.92
proxy_headers.goFile · 0.92
errors.goFile · 0.92
grpc_nsgs.goFile · 0.92
io.goFile · 0.92
ttigw.goFile · 0.92
TestProcessDownlinkTaskFunction · 0.92
errors.goFile · 0.92
redis.goFile · 0.92

Calls 1

defineFunction · 0.85

Tested by 2

TestProcessDownlinkTaskFunction · 0.74
TestCodesFunction · 0.74