Documentation
¶
Index ¶
- type BatchUpdateRequest
- type DeleteRequest
- type Element
- type GetRequest
- type GetResponse
- type Record
- func (record *Record) BatchUpdate(updates map[string]interface{}) (uint64, error)
- func (record *Record) Delete(key string) (uint64, error)
- func (record *Record) Get(ver uint64, key string) (interface{}, bool)
- func (record *Record) MarshalBinary() ([]byte, error)
- func (record *Record) Restore(table kv.Table) error
- func (record *Record) Snapshot(version uint64) Snapshot
- func (record *Record) Store(table kv.Table) error
- func (record *Record) StoreSingle(key string, table kv.Table) error
- func (record *Record) UnmarshalBinary(data []byte) error
- func (record *Record) Update(key string, value interface{}) (uint64, error)
- type Snapshot
- type SnapshotRequest
- type Store
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchUpdateRequest ¶
type BatchUpdateRequest struct {
Elements []Element
Responder chan<- UpdateResponse
}
func (BatchUpdateRequest) IsMessage ¶
func (BatchUpdateRequest) IsMessage()
type DeleteRequest ¶
type DeleteRequest struct {
Key string
Responder chan<- UpdateResponse
}
func (DeleteRequest) IsMessage ¶
func (DeleteRequest) IsMessage()
type GetRequest ¶
type GetRequest struct {
Version uint64
Key string
Responder chan<- GetResponse
}
func (GetRequest) IsMessage ¶
func (GetRequest) IsMessage()
type GetResponse ¶
type Record ¶
type Record struct {
CurrentVersion uint64
Nodes node.Nodes
// contains filtered or unexported fields
}
Record is a Persistent Map
func (*Record) BatchUpdate ¶
func (*Record) MarshalBinary ¶
func (*Record) UnmarshalBinary ¶
type SnapshotRequest ¶
func (SnapshotRequest) IsMessage ¶
func (SnapshotRequest) IsMessage()
type UpdateRequest ¶
type UpdateRequest struct {
Element
Responder chan<- UpdateResponse
}
func (UpdateRequest) IsMessage ¶
func (UpdateRequest) IsMessage()
type UpdateResponse ¶
Click to show internal directories.
Click to hide internal directories.