mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
11 lines
242 B
Go
11 lines
242 B
Go
package model
|
|
|
|
// Model provides an interface for uniformally handling database records.
|
|
type Model interface {
|
|
Key() string
|
|
SetKey(key string)
|
|
MoveTo(key string)
|
|
Meta() *Meta
|
|
SetMeta(meta *Meta)
|
|
Marshal(format uint8) ([]byte, error)
|
|
}
|