Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
func CheckVersion(previous, new HavingMetadata) (uint64, error)
CheckVersion check whether version is valid or not return next version and error if version is invalid
TODO: protoファイルに依存するのは綺麗ではないため、変えたい
Types ¶
type Datastore ¶
type Datastore interface {
List(f func(length int) []proto.Message) error
// if result is empty, set pb as nil.
Get(name string, pb proto.Message) error
Apply(name string, pb proto.Message) error
// Delete returns how many query was deleted and error
Delete(name string) error // TODO: returnをerrorのみにする
}
type HavingMetadata ¶
Click to show internal directories.
Click to hide internal directories.