Documentation ¶
Index ¶
- Constants
- type ConsulResult
- type ConsulTxn
- type ConsulTxnKV
- type Entry
- type OperationMatrix
- func (matrix *OperationMatrix) AddDelete(entry Entry)
- func (matrix *OperationMatrix) AddInsert(entry Entry)
- func (matrix *OperationMatrix) AddUpdate(entry Entry)
- func (matrix *OperationMatrix) GetOperations() []operation
- func (matrix *OperationMatrix) GetTotalDeletes() int
- func (matrix *OperationMatrix) GetTotalInserts() int
- func (matrix *OperationMatrix) GetTotalOps() int
- func (matrix *OperationMatrix) GetTotalUpdates() int
- func (matrix *OperationMatrix) HasDeletes() bool
Constants ¶
View Source
const OperationAll = "ALL"
View Source
const OperationDelete = "DELETE"
View Source
const OperationInsert = "INSERT"
View Source
const OperationUpdate = "UPDATE"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulResult ¶
type ConsulResult struct { LockIndex int `json:"lockIndex"` Key string `json:"Key"` Flags int `json:"Flags"` Value string `json:"Value"` CreateIndex int `json:"CreateIndex"` ModifyIndex int `json:"ModifyIndex"` }
A consul GET response
type ConsulTxnKV ¶
type ConsulTxnKV struct { Verb *string `json:"Verb"` Key *string `json:"Key"` Value *string `json:"Value,omitempty"` }
A consul KV Transaction payload
type OperationMatrix ¶
type OperationMatrix struct {
// contains filtered or unexported fields
}
Our operations matrix
func (*OperationMatrix) AddDelete ¶
func (matrix *OperationMatrix) AddDelete(entry Entry)
AddDelete ...
func (*OperationMatrix) AddInsert ¶
func (matrix *OperationMatrix) AddInsert(entry Entry)
AddInsert ...
func (*OperationMatrix) AddUpdate ¶
func (matrix *OperationMatrix) AddUpdate(entry Entry)
AddUpdate ...
func (*OperationMatrix) GetOperations ¶
func (matrix *OperationMatrix) GetOperations() []operation
GetOperations ...
func (*OperationMatrix) GetTotalDeletes ¶
func (matrix *OperationMatrix) GetTotalDeletes() int
GetTotalDeletes ...
func (*OperationMatrix) GetTotalInserts ¶
func (matrix *OperationMatrix) GetTotalInserts() int
GetTotalInserts ...
func (*OperationMatrix) GetTotalOps ¶
func (matrix *OperationMatrix) GetTotalOps() int
GetTotalOps ...
func (*OperationMatrix) GetTotalUpdates ¶
func (matrix *OperationMatrix) GetTotalUpdates() int
GetTotalUpdates ...
func (*OperationMatrix) HasDeletes ¶
func (matrix *OperationMatrix) HasDeletes() bool
HasDeletes ...
Click to show internal directories.
Click to hide internal directories.