entities

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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 ConsulTxn

type ConsulTxn struct {
	KV ConsulTxnKV `json:"KV"`
}

A consul Transaction payload

type ConsulTxnKV

type ConsulTxnKV struct {
	Verb  *string `json:"Verb"`
	Key   *string `json:"Key"`
	Value *string `json:"Value,omitempty"`
}

A consul KV Transaction payload

type Entry

type Entry struct {
	KVPath string
	Value  string
}

type OperationMatrix

type OperationMatrix struct {
	// contains filtered or unexported fields
}

Our operations matrix

func NewOperationsMatrix

func NewOperationsMatrix() OperationMatrix

NewOperationsMatrix ...

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 ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL