mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-21 00:21:15 +00:00
22 lines
395 B
Go
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 }
|