Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTokenExists = errors.New("push token already exists") ErrTokenNotFound = errors.New("push token not found for data container") )
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Store ¶
type Store interface { // Put creates a new push token record Put(ctx context.Context, record *Record) error // MarkAsInvalid marks all entries with the push token as invalid MarkAsInvalid(ctx context.Context, pushToken string) error // Delete deletes all entries with the push token Delete(ctx context.Context, pushToken string) error // GetAllValidByDataContainer gets all valid push token records for a given // data container. GetAllValidByDataContainer(ctx context.Context, id *user.DataContainerID) ([]*Record, error) }
Click to show internal directories.
Click to hide internal directories.