1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00
sii/block_ferry_log_entry.go
Knut Ahlers 8ab2291202
Add new blocks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-11 18:51:35 +01:00

22 lines
455 B
Go

package sii
func init() {
RegisterBlock(&FerryLogEntry{})
}
type FerryLogEntry struct {
Ferry Ptr `sii:"ferry"`
Connection Ptr `sii:"connection"`
LastVisit int64 `sii:"last_visit"`
UseCount int64 `sii:"use_count"`
blockName string
}
func (FerryLogEntry) Class() string { return "ferry_log_entry" }
func (f *FerryLogEntry) Init(class, name string) {
f.blockName = name
}
func (f FerryLogEntry) Name() string { return f.blockName }