1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_registry.go

23 lines
395 B
Go
Raw Normal View History

package sii
func init() {
RegisterBlock(&Registry{})
}
type Registry struct {
Data []int64 `sii:"data"`
Valid []bool `sii:"valid"`
Keys []int64 `sii:"keys"`
Index []int64 `sii:"index"`
blockName string
}
func (Registry) Class() string { return "registry" }
func (r *Registry) Init(class, name string) {
r.blockName = name
}
func (r Registry) Name() string { return r.blockName }