Documentation ¶
Overview ¶
Package redis provides Redis implementations of interfaces used by joinserver.
Index ¶
- type ApplicationActivationSettingRegistry
- func (r *ApplicationActivationSettingRegistry) GetByID(ctx context.Context, appID ttnpb.ApplicationIdentifiers, paths []string) (*ttnpb.ApplicationActivationSettings, error)
- func (r *ApplicationActivationSettingRegistry) SetByID(ctx context.Context, appID ttnpb.ApplicationIdentifiers, gets []string, ...) (*ttnpb.ApplicationActivationSettings, error)
- type DeviceRegistry
- func (r *DeviceRegistry) GetByEUI(ctx context.Context, joinEUI, devEUI types.EUI64, paths []string) (*ttnpb.ContextualEndDevice, error)
- func (r *DeviceRegistry) GetByID(ctx context.Context, appID ttnpb.ApplicationIdentifiers, devID string, ...) (*ttnpb.EndDevice, error)
- func (r *DeviceRegistry) SetByEUI(ctx context.Context, joinEUI types.EUI64, devEUI types.EUI64, gets []string, ...) (*ttnpb.ContextualEndDevice, error)
- func (r *DeviceRegistry) SetByID(ctx context.Context, appID ttnpb.ApplicationIdentifiers, devID string, ...) (*ttnpb.EndDevice, error)
- type KeyRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationActivationSettingRegistry ¶
ApplicationActivationSettingRegistry is an implementation of joinserver.ApplicationActivationSettingRegistry.
func (*ApplicationActivationSettingRegistry) GetByID ¶
func (r *ApplicationActivationSettingRegistry) GetByID(ctx context.Context, appID ttnpb.ApplicationIdentifiers, paths []string) (*ttnpb.ApplicationActivationSettings, error)
GetByID gets application activation settings by appID.
func (*ApplicationActivationSettingRegistry) SetByID ¶
func (r *ApplicationActivationSettingRegistry) SetByID(ctx context.Context, appID ttnpb.ApplicationIdentifiers, gets []string, f func(*ttnpb.ApplicationActivationSettings) (*ttnpb.ApplicationActivationSettings, []string, error)) (*ttnpb.ApplicationActivationSettings, error)
SetByID sets application activation settings by appID.
type DeviceRegistry ¶
DeviceRegistry is an implementation of joinserver.DeviceRegistry.
func (*DeviceRegistry) GetByEUI ¶
func (r *DeviceRegistry) GetByEUI(ctx context.Context, joinEUI, devEUI types.EUI64, paths []string) (*ttnpb.ContextualEndDevice, error)
GetByEUI gets device by joinEUI, devEUI.
func (*DeviceRegistry) GetByID ¶
func (r *DeviceRegistry) GetByID(ctx context.Context, appID ttnpb.ApplicationIdentifiers, devID string, paths []string) (*ttnpb.EndDevice, error)
GetByID gets device by appID, devID.
func (*DeviceRegistry) SetByEUI ¶
func (r *DeviceRegistry) SetByEUI(ctx context.Context, joinEUI types.EUI64, devEUI types.EUI64, gets []string, f func(context.Context, *ttnpb.EndDevice) (*ttnpb.EndDevice, []string, error)) (*ttnpb.ContextualEndDevice, error)
SetByEUI sets device by joinEUI, devEUI. SetByEUI will only succeed if the device is set via SetByID first.
type KeyRegistry ¶
KeyRegistry is an implementation of joinserver.KeyRegistry.
func (*KeyRegistry) GetByID ¶
func (r *KeyRegistry) GetByID(ctx context.Context, joinEUI, devEUI types.EUI64, id []byte, paths []string) (*ttnpb.SessionKeys, error)
GetByID gets session keys by joinEUI, devEUI, id.
func (*KeyRegistry) SetByID ¶
func (r *KeyRegistry) SetByID(ctx context.Context, joinEUI, devEUI types.EUI64, id []byte, gets []string, f func(*ttnpb.SessionKeys) (*ttnpb.SessionKeys, []string, error)) (*ttnpb.SessionKeys, error)
SetByID sets session keys by joinEUI, devEUI, id.