Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is an store.Entry implementation
func (*Entry) RemoveLogs ¶
RemoveLogs implements the store interface
type PostgreSQLStore ¶
type PostgreSQLStore struct {
// contains filtered or unexported fields
}
PostgreSQLStore is a tracker store implementation that uses PostgreSQL as a backend.
func NewPostgreSQLStore ¶
func NewPostgreSQLStore(endpoint string) (*PostgreSQLStore, error)
NewPostgreSQLStore creates a new PostgreSQL store
func NewSQLStore ¶
func NewSQLStore(db *sql.DB, driver string) (*PostgreSQLStore, error)
NewSQLStore creates a new store with an sql driver
func (*PostgreSQLStore) Close ¶
func (p *PostgreSQLStore) Close() error
Close implements the store interface
func (*PostgreSQLStore) Get ¶
func (p *PostgreSQLStore) Get(k string) (string, error)
Get implements the store interface
func (*PostgreSQLStore) GetEntry ¶
func (p *PostgreSQLStore) GetEntry(hash string) (store.Entry, error)
GetEntry implements the store interface
func (*PostgreSQLStore) ListPrefix ¶
func (p *PostgreSQLStore) ListPrefix(prefix string) ([]string, error)
ListPrefix implements the store interface
func (*PostgreSQLStore) Set ¶
func (p *PostgreSQLStore) Set(k, v string) error
Set implements the store interface
Click to show internal directories.
Click to hide internal directories.