Documentation ¶
Index ¶
- type DeviceRegistry
- type LinkRegistry
- func (r *LinkRegistry) Get(ctx context.Context, ids ttnpb.ApplicationIdentifiers, paths []string) (*ttnpb.ApplicationLink, error)
- func (r *LinkRegistry) Range(ctx context.Context, paths []string, ...) error
- func (r *LinkRegistry) Set(ctx context.Context, ids ttnpb.ApplicationIdentifiers, gets []string, ...) (*ttnpb.ApplicationLink, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceRegistry ¶
DeviceRegistry is a Redis device registry.
type LinkRegistry ¶
LinkRegistry is a store for application links.
func (*LinkRegistry) Get ¶
func (r *LinkRegistry) Get(ctx context.Context, ids ttnpb.ApplicationIdentifiers, paths []string) (*ttnpb.ApplicationLink, error)
Get returns the link by the application identifiers.
func (*LinkRegistry) Range ¶
func (r *LinkRegistry) Range(ctx context.Context, paths []string, f func(context.Context, ttnpb.ApplicationIdentifiers, *ttnpb.ApplicationLink) bool) error
Range ranges the links and calls the callback function, until false is returned.
func (*LinkRegistry) Set ¶
func (r *LinkRegistry) Set(ctx context.Context, ids ttnpb.ApplicationIdentifiers, gets []string, f func(*ttnpb.ApplicationLink) (*ttnpb.ApplicationLink, []string, error)) (*ttnpb.ApplicationLink, error)
Set creates, updates or deletes the link by the application identifiers.
Click to show internal directories.
Click to hide internal directories.