Documentation ¶
Index ¶
- Constants
- type SQL
- func (s *SQL) CountEventsBy(ctx context.Context, feedID feed.ID, since time.Time, key string, ...) (map[string]int64, error)
- func (s *SQL) CreateSubscription(ctx context.Context, sub *feed.Subscription) error
- func (s *SQL) DeleteAllSubscriptions(ctx context.Context, feedID feed.ID, errorLike string) (int64, error)
- func (s *SQL) EventTx(ctx context.Context, body func(tx feed.EventTx) error) error
- func (s *SQL) GetActiveFeedIDs(ctx context.Context) ([]feed.ID, error)
- func (s *SQL) GetSubscription(ctx context.Context, header feed.Header) (*feed.Subscription, error)
- func (s *SQL) IsMediaUnique(ctx context.Context, hash *feed.MediaHash) (bool, error)
- func (s *SQL) ListSubscriptions(ctx context.Context, feedID feed.ID, active bool) ([]feed.Subscription, error)
- func (s *SQL) SaveEvent(ctx context.Context, feedID feed.ID, eventType string, value any) error
- func (s *SQL) ShiftSubscription(ctx context.Context, feedID feed.ID) (*feed.Subscription, error)
- func (s *SQL) Tx(ctx context.Context, body func(tx feed.Tx) error) error
- func (s *SQL) UpdateSubscription(ctx context.Context, header feed.Header, value any) error
Constants ¶
View Source
const ServiceID = "core.storage"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQL ¶
func (*SQL) CountEventsBy ¶
func (*SQL) CreateSubscription ¶
func (*SQL) DeleteAllSubscriptions ¶
func (*SQL) GetActiveFeedIDs ¶
func (*SQL) GetSubscription ¶
func (*SQL) IsMediaUnique ¶
func (*SQL) ListSubscriptions ¶
func (*SQL) ShiftSubscription ¶
Click to show internal directories.
Click to hide internal directories.