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