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

Method SetByID

pkg/joinserver/registry.go:50–50  ·  view source on GitHub ↗
(ctx context.Context, joinEUI, devEUI types.EUI64, id []byte, paths []string, f func(*ttnpb.SessionKeys) (*ttnpb.SessionKeys, []string, error))

Source from the content-addressed store, hash-verified

48type KeyRegistry interface {
49 GetByID(ctx context.Context, joinEUI, devEUI types.EUI64, id []byte, paths []string) (*ttnpb.SessionKeys, error)
50 SetByID(ctx context.Context, joinEUI, devEUI types.EUI64, id []byte, paths []string, f func(*ttnpb.SessionKeys) (*ttnpb.SessionKeys, []string, error)) (*ttnpb.SessionKeys, error)
51 Delete(ctx context.Context, joinEUI, devEUI types.EUI64) error
52 BatchDelete(ctx context.Context, devIDs []*ttnpb.EndDeviceIdentifiers) error
53}

Callers 11

SetMethod · 0.65
DeleteMethod · 0.65
TestHandleJoinFunction · 0.65
SetMethod · 0.65
DeleteMethod · 0.65
HandleJoinMethod · 0.65
handleDeviceRegistryTestFunction · 0.65
handleKeyRegistryTestFunction · 0.65
DeleteDeviceFunction · 0.65
DeleteKeysFunction · 0.65

Implementers 2

MockKeyRegistrypkg/joinserver/joinserver_internal_tes
KeyRegistrypkg/joinserver/redis/registry.go

Calls

no outgoing calls

Tested by 3

TestHandleJoinFunction · 0.52
handleDeviceRegistryTestFunction · 0.52
handleKeyRegistryTestFunction · 0.52