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

Interface DB

internal/utils/agents/db.go:5–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3package agents
4
5type DB interface {
6 Init() error
7 InsertAgentIP(ipId int64, ip string, agentCode string) error
8 ListAgentIPs(offset int64, size int64) (agentIPs []*AgentIP, err error)
9}

Callers 10

loadDBMethod · 0.95
SimpleEncryptFunction · 0.65
simpleDecryptFunction · 0.65
TestKVDB_InsertAgentIPFunction · 0.65
TestKVDB_ListAgentIPsFunction · 0.65
TestNewManagerFunction · 0.65
TestKVDB_InsertAgentIPFunction · 0.65
LoopMethod · 0.65
TestKVDB_ListAgentIPsFunction · 0.65
LoadMethod · 0.65

Implementers 2

SQLiteDBinternal/utils/agents/db_sqlite.go
KVDBinternal/utils/agents/db_kv.go

Calls

no outgoing calls

Tested by

no test coverage detected