Documentation ¶
Overview ¶
Package sqlite3 allows storing http request data in sqlite databases.
Index ¶
Constants ¶
View Source
const (
SQLITE_LOCKED = 6
)
Variables ¶
View Source
var DateFormats = map[string]string{
"day": "2006-01-02T-MST",
"hour": "2006-01-02T15-MST",
"minute": "2006-01-02T15-04-MST",
}
Map shortcuts strings to verbose date formats.
Functions ¶
Types ¶
type SQLiteDumper ¶
type SQLiteDumper struct {
// contains filtered or unexported fields
}
func NewDumper ¶
func NewDumper(dateFmt, dbPath string) (*SQLiteDumper, error)
NewDumper returns an initialized SQLiteDumper that dumps request data to an SQLite db file.
func (*SQLiteDumper) BatchDone ¶
func (sqld *SQLiteDumper) BatchDone(batchID int64) error
func (*SQLiteDumper) MarkBatch ¶
func (sqld *SQLiteDumper) MarkBatch() (int64, error)
func (*SQLiteDumper) ReadRequests ¶
func (sqld *SQLiteDumper) ReadRequests(batchID int64) ([]storage.Request, error)
Click to show internal directories.
Click to hide internal directories.