Documentation
¶
Overview ¶
Package sqlite is the SQLite state store of the mirror.
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) Due(ctx context.Context, name string, now time.Time) ([]mirror.Ref, time.Time, error)
- func (s *Store) FinishSeedCleanup(ctx context.Context, name string, refs []string) error
- func (s *Store) HasMirror(ctx context.Context, name string) (bool, error)
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) Reconciled(ctx context.Context, name string, targets map[string]string, now time.Time) error
- func (s *Store) RecordFailure(ctx context.Context, name, ref string, version int64, class mirror.Class, ...) error
- func (s *Store) RecordHook(ctx context.Context, hit mirror.Hit, now time.Time) (mirror.HookResult, error)
- func (s *Store) RecordPage(ctx context.Context, hits []mirror.Hit, cursor string, now time.Time) error
- func (s *Store) RecordPush(ctx context.Context, name, ref string, version int64, pushed string, ...) error
- func (s *Store) Refs(ctx context.Context, name, after string, limit int) ([]mirror.Ref, error)
- func (s *Store) Seed(ctx context.Context, name string) (string, error)
- func (s *Store) SeedCleaned(ctx context.Context, name string) (bool, error)
- func (s *Store) SeedRefs(ctx context.Context, name string) (map[string]mirror.SeedRef, error)
- func (s *Store) Service(ctx context.Context) (mirror.Service, error)
- func (s *Store) SetPushed(ctx context.Context, name, ref, pushed string) error
- func (s *Store) SetSeed(ctx context.Context, name, state string) error
- func (s *Store) SetSeedRef(ctx context.Context, name, ref string, r mirror.SeedRef) error
- func (s *Store) SetSubscription(ctx context.Context, id, cursor string, clearSeq bool) error
- func (s *Store) StateRefs(ctx context.Context, name string) ([]string, error)
- func (s *Store) Stats(ctx context.Context) ([]mirror.Stats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a mirror.Store on one SQLite file.
func (*Store) FinishSeedCleanup ¶ added in v0.2.1
func (*Store) Reconciled ¶
func (*Store) RecordFailure ¶
func (*Store) RecordHook ¶
func (*Store) RecordPage ¶
func (*Store) RecordPush ¶
func (*Store) SeedCleaned ¶ added in v0.2.1
func (*Store) SetSeedRef ¶ added in v0.2.0
func (*Store) SetSubscription ¶
Click to show internal directories.
Click to hide internal directories.