pg

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pg is an index store in a Postgres database, which isn't implemented yet (#72): each of its methods returns ErrNotImplemented

Index

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 an index in a Postgres database, of a pool of its connections

func New

func New(conn pg.PoolConn, opts ...store.Opt) (*Store, error)

New returns an index store of a pool of connections to its database, such as go-pg's pkg/cmd PostgresFlags' Connect returns, which its owner closes

func (*Store) Changed

func (self *Store) Changed(context.Context, string, string, string, int) ([]store.Seen, error)

func (*Store) Claim

func (self *Store) Claim(context.Context, string, []store.Kind, int, time.Duration) ([]store.Work, error)

func (*Store) CountChanged

func (self *Store) CountChanged(context.Context, string, string) (uint64, error)

func (*Store) CountObjects

func (self *Store) CountObjects(context.Context, string, store.ListRequest) (uint64, error)

func (*Store) CreateVolume

func (self *Store) CreateVolume(context.Context, schema.VolumeMeta) (*schema.Volume, error)

func (*Store) DeleteMetadata

func (self *Store) DeleteMetadata(context.Context, string, string) error

func (*Store) DeleteObject

func (self *Store) DeleteObject(context.Context, string, string) error

func (*Store) DeleteUnlinkedArtwork added in v0.6.0

func (self *Store) DeleteUnlinkedArtwork(context.Context) (int, error)

func (*Store) DeleteVolume

func (self *Store) DeleteVolume(context.Context, string) error

func (*Store) Done

func (self *Store) Done(context.Context, string, ...store.Work) error

func (*Store) Failed

func (*Store) GetArtwork added in v0.6.0

func (self *Store) GetArtwork(context.Context, string, bool) (*schema.Artwork, error)

func (*Store) GetObject

func (self *Store) GetObject(context.Context, string, string) (*schema.Object, error)

func (*Store) GetVolume

func (self *Store) GetVolume(context.Context, string) (*schema.Volume, error)

func (*Store) Kinds

func (self *Store) Kinds(context.Context, string) (map[string]uint64, error)

func (*Store) ListObjects

func (self *Store) ListObjects(context.Context, string, store.ListRequest) ([]*schema.Object, error)

func (*Store) ListVolumes

func (self *Store) ListVolumes(context.Context) ([]*schema.Volume, error)

func (*Store) ObjectArtwork added in v0.6.0

func (self *Store) ObjectArtwork(context.Context, string, string) ([]*schema.Artwork, error)

func (*Store) Pending

func (self *Store) Pending(context.Context, string, string) (bool, error)

func (*Store) PendingBeneath

func (self *Store) PendingBeneath(context.Context, string, string) (bool, error)

func (*Store) Push

func (self *Store) Push(context.Context, string, ...store.Work) error

func (*Store) PushStale

func (self *Store) PushStale(context.Context, string, string, store.Kind) error

func (*Store) PutObject

func (self *Store) PutObject(context.Context, string, ...*schema.Object) error

func (*Store) Revisions

func (self *Store) Revisions(context.Context, string, string, bool) (map[string]string, error)

func (*Store) Search

func (*Store) Seen

func (self *Store) Seen(context.Context, string, map[string]string) error

func (*Store) SetMetadata

func (*Store) SetObjectArtwork added in v0.6.0

func (self *Store) SetObjectArtwork(context.Context, string, string, ...schema.ArtworkMeta) ([]*schema.Artwork, error)

func (*Store) SetRevisions

func (self *Store) SetRevisions(context.Context, string, map[string]string) error

func (*Store) SetState

func (self *Store) SetState(context.Context, string, schema.IndexState) error

func (*Store) State

func (self *Store) State(context.Context, string) (schema.IndexState, error)

func (*Store) Sweep

func (self *Store) Sweep(context.Context, string, string) error

func (*Store) Tasks

func (*Store) UnlinkVolumeArtwork added in v0.6.0

func (self *Store) UnlinkVolumeArtwork(context.Context, string) error

func (*Store) Unsee

func (self *Store) Unsee(context.Context, string, string) error

func (*Store) UpdateVolume

func (self *Store) UpdateVolume(context.Context, schema.VolumeMeta) (*schema.Volume, error)

Jump to

Keyboard shortcuts

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