Documentation ¶
Index ¶
- func CheckVersion(previous, new uint64) (uint64, error)
- type Datastore
- type Test
- func (*Test) Descriptor() ([]byte, []int)
- func (m *Test) GetName() string
- func (*Test) ProtoMessage()
- func (m *Test) Reset()
- func (m *Test) String() string
- func (m *Test) XXX_DiscardUnknown()
- func (m *Test) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Test) XXX_Merge(src proto.Message)
- func (m *Test) XXX_Size() int
- func (m *Test) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
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 Test ¶ added in v0.1.1
type Test struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Test) Descriptor ¶ added in v0.1.1
func (*Test) ProtoMessage ¶ added in v0.1.1
func (*Test) ProtoMessage()
func (*Test) XXX_DiscardUnknown ¶ added in v0.1.1
func (m *Test) XXX_DiscardUnknown()
func (*Test) XXX_Marshal ¶ added in v0.1.1
func (*Test) XXX_Unmarshal ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.