Documentation ¶
Index ¶
- type ApplicationPackagesRegistry
- func (r *ApplicationPackagesRegistry) EndDeviceTransaction(ctx context.Context, ids ttnpb.EndDeviceIdentifiers, fPort uint32, ...) error
- func (r ApplicationPackagesRegistry) GetAssociation(ctx context.Context, ids ttnpb.ApplicationPackageAssociationIdentifiers, ...) (*ttnpb.ApplicationPackageAssociation, error)
- func (r ApplicationPackagesRegistry) GetDefaultAssociation(ctx context.Context, ids ttnpb.ApplicationPackageDefaultAssociationIdentifiers, ...) (*ttnpb.ApplicationPackageDefaultAssociation, error)
- func (r *ApplicationPackagesRegistry) Init(ctx context.Context) error
- func (r ApplicationPackagesRegistry) ListAssociations(ctx context.Context, ids ttnpb.EndDeviceIdentifiers, paths []string) ([]*ttnpb.ApplicationPackageAssociation, error)
- func (r ApplicationPackagesRegistry) ListDefaultAssociations(ctx context.Context, ids ttnpb.ApplicationIdentifiers, paths []string) ([]*ttnpb.ApplicationPackageDefaultAssociation, error)
- func (r ApplicationPackagesRegistry) SetAssociation(ctx context.Context, ids ttnpb.ApplicationPackageAssociationIdentifiers, ...) (*ttnpb.ApplicationPackageAssociation, error)
- func (r ApplicationPackagesRegistry) SetDefaultAssociation(ctx context.Context, ids ttnpb.ApplicationPackageDefaultAssociationIdentifiers, ...) (*ttnpb.ApplicationPackageDefaultAssociation, error)
- func (r ApplicationPackagesRegistry) WithPagination(ctx context.Context, limit, page uint32, total *int64) context.Context
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 // contains filtered or unexported fields }
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
func (r ApplicationPackagesRegistry) GetAssociation(ctx context.Context, ids ttnpb.ApplicationPackageAssociationIdentifiers, paths []string) (*ttnpb.ApplicationPackageAssociation, error)
GetAssociation implements applicationpackages.AssociationRegistry.
func (ApplicationPackagesRegistry) GetDefaultAssociation ¶ added in v3.9.0
func (r ApplicationPackagesRegistry) GetDefaultAssociation(ctx context.Context, ids ttnpb.ApplicationPackageDefaultAssociationIdentifiers, paths []string) (*ttnpb.ApplicationPackageDefaultAssociation, error)
GetDefaultAssociation implements applicationpackages.AssociationRegistry.
func (*ApplicationPackagesRegistry) Init ¶ added in v3.14.1
func (r *ApplicationPackagesRegistry) Init(ctx context.Context) error
Init initializes the ApplicationPackagesRegistry.
func (ApplicationPackagesRegistry) ListAssociations ¶ added in v3.9.0
func (r ApplicationPackagesRegistry) ListAssociations(ctx context.Context, ids ttnpb.EndDeviceIdentifiers, paths []string) ([]*ttnpb.ApplicationPackageAssociation, error)
ListAssociations implements applicationpackages.AssociationRegistry.
func (ApplicationPackagesRegistry) ListDefaultAssociations ¶ added in v3.9.0
func (r ApplicationPackagesRegistry) ListDefaultAssociations(ctx context.Context, ids ttnpb.ApplicationIdentifiers, paths []string) ([]*ttnpb.ApplicationPackageDefaultAssociation, error)
ListDefaultAssociations implements applicationpackages.AssociationRegistry.
func (ApplicationPackagesRegistry) SetAssociation ¶ added in v3.9.0
func (r ApplicationPackagesRegistry) SetAssociation(ctx context.Context, ids ttnpb.ApplicationPackageAssociationIdentifiers, gets []string, f func(*ttnpb.ApplicationPackageAssociation) (*ttnpb.ApplicationPackageAssociation, []string, error)) (*ttnpb.ApplicationPackageAssociation, error)
SetAssociation implements applicationpackages.AssociationRegistry.
func (ApplicationPackagesRegistry) SetDefaultAssociation ¶ added in v3.9.0
func (r ApplicationPackagesRegistry) SetDefaultAssociation(ctx context.Context, ids ttnpb.ApplicationPackageDefaultAssociationIdentifiers, gets []string, f func(*ttnpb.ApplicationPackageDefaultAssociation) (*ttnpb.ApplicationPackageDefaultAssociation, []string, error)) (*ttnpb.ApplicationPackageDefaultAssociation, error)
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.