sqlstore

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

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 a sql based Store implementation.

func New

func New(db *sql.DB) *Store

New returns a new SQLStore.

func (*Store) Check

func (s *Store) Check(ctx context.Context) error

Check checks the health of the store.

func (*Store) GetDatabases

func (s *Store) GetDatabases(ctx context.Context) ([]domain.Database, error)

GetDatabases returns databases.

func (*Store) GetLists

func (s *Store) GetLists(ctx context.Context) ([]domain.List, error)

GetLists returns lists.

func (*Store) GetPools

func (s *Store) GetPools(ctx context.Context) ([]domain.Pool, error)

GetPools returns pools.

func (*Store) GetStats

func (s *Store) GetStats(ctx context.Context) ([]domain.Stat, error)

GetStats returns stats.

Jump to

Keyboard shortcuts

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