Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("no data found")
)
Functions ¶
Types ¶
type SQLiteStorage ¶
func (*SQLiteStorage) Log ¶
func (s *SQLiteStorage) Log(reqType, request string) error
func (*SQLiteStorage) ReadLogs ¶
func (s *SQLiteStorage) ReadLogs() (logs []string, err error)
type Storer ¶
type Storer interface {
// Read reads records for the given module from the database
Read(time.Time) (data.Rates, error)
// Write writes the data to the database
Write(data.Rates) error
// Log requests to the database
Log(string, string) error
// ReadLogs return 10 most recent logs from the database
ReadLogs() ([]string, error)
}
Click to show internal directories.
Click to hide internal directories.