Documentation
¶
Index ¶
- Constants
- type IDatabase
- type SQLite
- func (s *SQLite) AddCounter(identifer string) (int, error)
- func (s *SQLite) CloseDB()
- func (s *SQLite) Exec(st string) error
- func (s *SQLite) GetCounter(identifer string) (int, error)
- func (s *SQLite) InitDB()
- func (s *SQLite) QueryCounter(skip int, limit int) ([]common.Counter, error)
- func (s *SQLite) WriteCounter(identifer string, v int) error
Constants ¶
View Source
const ADD_COUNTER = `UPDATE counters
SET count = count + 1
WHERE identifier = ?;
`
View Source
const CREATE_TABLE = `` /* 186-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDatabase ¶
type SQLite ¶
func (*SQLite) GetCounter ¶ added in v0.0.2
func (*SQLite) QueryCounter ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.