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
Knut Ahlers a73cada4f5
Add new blocks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-11 18:38:23 +01:00

22 lines
395 B
Go

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 }