MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / SQLiteIPList

Struct SQLiteIPList

internal/iplibrary/ip_list_sqlite.go:18–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16)
17
18type SQLiteIPList struct {
19 db *dbs.DB
20
21 itemTableName string
22 versionTableName string
23
24 deleteExpiredItemsStmt *dbs.Stmt
25 deleteItemStmt *dbs.Stmt
26 insertItemStmt *dbs.Stmt
27 selectItemsStmt *dbs.Stmt
28 selectMaxItemVersionStmt *dbs.Stmt
29
30 selectVersionStmt *dbs.Stmt
31 updateVersionStmt *dbs.Stmt
32
33 cleanTicker *time.Ticker
34
35 dir string
36
37 isClosed bool
38}
39
40func NewSQLiteIPList() (*SQLiteIPList, error) {
41 var db = &SQLiteIPList{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected