store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	// contains filtered or unexported fields
}

func New

func New(queueSize int, storeFolder string) (*DataStore, error)

func (*DataStore) BeginPosts

func (ds *DataStore) BeginPosts(hostname string)

func (*DataStore) Get

func (ds *DataStore) Get() (map[string][]*repository.Local, error)

func (*DataStore) Post

func (ds *DataStore) Post(hostName string, repositoryData *repository.Local) error

func (*DataStore) Run

func (ds *DataStore) Run(ctx context.Context)

type SqliteStore

type SqliteStore struct {
	// contains filtered or unexported fields
}

func NewSqliteStore

func NewSqliteStore(storeFolder string) (*SqliteStore, error)

func (*SqliteStore) BeginPosts

func (s *SqliteStore) BeginPosts(hostName string) error

func (*SqliteStore) GetSummary

func (s *SqliteStore) GetSummary() (map[string][]*repository.Local, error)

func (*SqliteStore) Post

func (s *SqliteStore) Post(hostName string, repository *repository.Local) error

type Store

type Store interface {
	Post(hostName string, repository *repository.Local) error
	GetSummary() (map[string][]*repository.Local, error)
	BeginPosts(hostName string) error
}

Jump to

Keyboard shortcuts

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