MCPcopy
hub / github.com/davyxu/tabtoy / RegisterPreEntry

Method RegisterPreEntry

v3/example/golang/table_gen.go:99–106  ·  view source on GitHub ↗

注册加载前回调(用于清除数据)

(h func(*Table) error)

Source from the content-addressed store, hash-verified

97
98// 注册加载前回调(用于清除数据)
99func (self *Table) RegisterPreEntry(h func(*Table) error) {
100
101 if h == nil {
102 panic("empty preload handler")
103 }
104
105 self.preHandlers = append(self.preHandlers, h)
106}
107
108// 清除索引和数据
109func (self *Table) ResetData() error {

Callers 1

LoadAllTableFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected