Documentation ¶
Index ¶
Constants ¶
View Source
const (
CREATE_TABLE_SQL = `` /* 171-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
Types ¶
type KeyNodeTable ¶
type KeyNodeTable struct { SQLiteDB *sql.DB `json:",omitempty"` Id int `json:",omitempty"` PodKey string `json:",omitempty"` NodeName string `json:",omitempty"` Count int `json:",omitempty"` }
var KeyNodeCilent KeyNodeTable
func (*KeyNodeTable) KeyNodeInsert ¶
func (kn *KeyNodeTable) KeyNodeInsert(key, nodeName string, count int) (id int, err error)
func (*KeyNodeTable) KeyNodeSearch ¶
func (kn *KeyNodeTable) KeyNodeSearch(podKey string, nodeName string) ([]KeyNodeTable, error)
func (*KeyNodeTable) KeyNodeUpdate ¶
func (kn *KeyNodeTable) KeyNodeUpdate(id int, count int) (int64, error)
Click to show internal directories.
Click to hide internal directories.