Versions in this module Expand all Collapse all v1 v1.0.1 Sep 11, 2023 v1.0.0 Aug 17, 2023 Changes in this version + const SchemaVersion + func Reset(cacheDir string) error + type Client struct + func NewMetadata(cacheDir string) Client + func (c *Client) Delete() error + func (c *Client) Get() (Metadata, error) + func (c *Client) Update(meta Metadata) error + type DB struct + func New(cacheDir string) (DB, error) + func (db *DB) Close() error + func (db *DB) Dir() string + func (db *DB) Init() error + func (db *DB) InsertIndexes(indexes []types.Index) error + func (db *DB) SelectIndexByArtifactIDAndGroupID(artifactID, groupID string) (types.Index, error) + func (db *DB) SelectIndexBySha1(sha1 string) (types.Index, error) + func (db *DB) SelectIndexesByArtifactIDAndFileType(artifactID string, fileType types.ArchiveType) ([]types.Index, error) + func (db *DB) VacuumDB() error + type Metadata struct + DownloadedAt time.Time + NextUpdate time.Time + UpdatedAt time.Time + Version int