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

Method ValidateContext

pkg/ttnpb/identifiers.go:173–178  ·  view source on GitHub ↗

ValidateContext wraps the generated validator with (optionally context-based) custom checks.

(context.Context)

Source from the content-addressed store, hash-verified

171
172// ValidateContext wraps the generated validator with (optionally context-based) custom checks.
173func (ids *UserIdentifiers) ValidateContext(context.Context) error {
174 if err := ids.ValidateFields(); err != nil {
175 return errIdentifiers.WithCause(err)
176 }
177 return nil
178}
179
180// ValidateContext wraps the generated validator with (optionally context-based) custom checks.
181func (ids *MACSettingsProfileIdentifiers) ValidateContext(context.Context) error {

Callers 1

DoLoginMethod · 0.95

Calls 2

ValidateFieldsMethod · 0.95
WithCauseMethod · 0.45

Tested by

no test coverage detected