redis

package
v3.16.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationPackagesRegistry

type ApplicationPackagesRegistry struct {
	Redis   *ttnredis.Client
	LockTTL time.Duration
}

ApplicationPackagesRegistry is a Redis application packages registry.

func (*ApplicationPackagesRegistry) EndDeviceTransaction added in v3.14.1

func (r *ApplicationPackagesRegistry) EndDeviceTransaction(ctx context.Context, ids ttnpb.EndDeviceIdentifiers, fPort uint32, packageName string, fn func(ctx context.Context) error) error

EndDeviceTransaction implements applicationpackages.TransactionRegistry.

func (ApplicationPackagesRegistry) GetAssociation added in v3.9.0

GetAssociation implements applicationpackages.AssociationRegistry.

func (ApplicationPackagesRegistry) GetDefaultAssociation added in v3.9.0

GetDefaultAssociation implements applicationpackages.AssociationRegistry.

func (*ApplicationPackagesRegistry) Init added in v3.14.1

Init initializes the ApplicationPackagesRegistry.

func (ApplicationPackagesRegistry) ListAssociations added in v3.9.0

ListAssociations implements applicationpackages.AssociationRegistry.

func (ApplicationPackagesRegistry) ListDefaultAssociations added in v3.9.0

ListDefaultAssociations implements applicationpackages.AssociationRegistry.

func (ApplicationPackagesRegistry) Range added in v3.15.2

Range ranges over the application packages and calls the appropriate callback function, until false is returned.

func (ApplicationPackagesRegistry) SetAssociation added in v3.9.0

SetAssociation implements applicationpackages.AssociationRegistry.

func (ApplicationPackagesRegistry) SetDefaultAssociation added in v3.9.0

SetDefaultAssociation implements applicationpackages.AssociationRegistry.

func (ApplicationPackagesRegistry) WithPagination

func (r ApplicationPackagesRegistry) WithPagination(ctx context.Context, limit, page uint32, total *int64) context.Context

WithPagination implements applicationpackages.AssociationRegistry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL