store

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sql.DB) error

func OpenDefaultDB

func OpenDefaultDB() (*sql.DB, error)

Types

type HistoryStore

type HistoryStore interface {
	SaveHistory(entries []string) error
	GetLastProcessedMtime(key, path string) (int64, error)
	UpdateMetadata(key, path string, mtime int64) error
}

func NewSQLHistoryStore

func NewSQLHistoryStore(db *sql.DB) HistoryStore

type MetaStore

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

func NewMetaStore

func NewMetaStore(db *sql.DB) *MetaStore

func (*MetaStore) NeedsReload

func (m *MetaStore) NeedsReload(key string, filePath string) bool

func (*MetaStore) TouchMeta

func (m *MetaStore) TouchMeta(key string, filePath string) error

type MockHistoryStore

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

MockHistoryStore is a mock of HistoryStore interface.

func NewMockHistoryStore

func NewMockHistoryStore(ctrl *gomock.Controller) *MockHistoryStore

NewMockHistoryStore creates a new mock instance.

func (*MockHistoryStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHistoryStore) GetLastProcessedMtime

func (m *MockHistoryStore) GetLastProcessedMtime(key, path string) (int64, error)

GetLastProcessedMtime mocks base method.

func (*MockHistoryStore) SaveHistory

func (m *MockHistoryStore) SaveHistory(entries []string) error

SaveHistory mocks base method.

func (*MockHistoryStore) UpdateMetadata

func (m *MockHistoryStore) UpdateMetadata(key, path string, mtime int64) error

UpdateMetadata mocks base method.

type MockHistoryStoreMockRecorder

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

MockHistoryStoreMockRecorder is the mock recorder for MockHistoryStore.

func (*MockHistoryStoreMockRecorder) GetLastProcessedMtime

func (mr *MockHistoryStoreMockRecorder) GetLastProcessedMtime(key, path interface{}) *gomock.Call

GetLastProcessedMtime indicates an expected call of GetLastProcessedMtime.

func (*MockHistoryStoreMockRecorder) SaveHistory

func (mr *MockHistoryStoreMockRecorder) SaveHistory(entries interface{}) *gomock.Call

SaveHistory indicates an expected call of SaveHistory.

func (*MockHistoryStoreMockRecorder) UpdateMetadata

func (mr *MockHistoryStoreMockRecorder) UpdateMetadata(key, path, mtime interface{}) *gomock.Call

UpdateMetadata indicates an expected call of UpdateMetadata.

type SQLHistoryStore

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

func (*SQLHistoryStore) GetLastProcessedMtime

func (s *SQLHistoryStore) GetLastProcessedMtime(key, path string) (int64, error)

func (*SQLHistoryStore) SaveHistory

func (s *SQLHistoryStore) SaveHistory(entries []string) error

func (*SQLHistoryStore) UpdateMetadata

func (s *SQLHistoryStore) UpdateMetadata(key, path string, mtime int64) error

Jump to

Keyboard shortcuts

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