model

package
v0.0.0-...-82caf8f Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaDataCounter

func NewMetaDataCounter(counter *OvoCounter) *storage.MetaDataCounter

func NewMetaDataObj

func NewMetaDataObj(req *OvoKVRequest) *storage.MetaDataObj

func NewMetaDataUpdObj

func NewMetaDataUpdObj(req *OvoKVUpdateRequest) *storage.MetaDataUpdObj

Types

type Any

type Any interface{}

type OvoCounter

type OvoCounter struct {
	Key   string
	Value int64
	TTL   int
	Hash  int
}

type OvoCounterResponse

type OvoCounterResponse struct {
	Key   string
	Value int64
}

func NewOvoCounterResponse

func NewOvoCounterResponse(counter *storage.MetaDataCounter) *OvoCounterResponse

type OvoKVKeys

type OvoKVKeys struct {
	Keys []string
}

type OvoKVRequest

type OvoKVRequest struct {
	Key        string
	Data       []byte
	Collection string
	TTL        int
	Hash       int
}

type OvoKVResponse

type OvoKVResponse struct {
	Key  string
	Data []byte
}

func NewOvoKVResponse

func NewOvoKVResponse(obj *storage.MetaDataObj) *OvoKVResponse

type OvoKVUpdateRequest

type OvoKVUpdateRequest struct {
	Key     string
	NewKey  string
	Data    []byte
	NewData []byte
	Hash    int
	NewHash int
}

type OvoResponse

type OvoResponse struct {
	Status string
	Code   string
	Data   Any
}

func NewOvoResponse

func NewOvoResponse(status string, code string, data Any) *OvoResponse

type OvoTopology

type OvoTopology struct {
	Nodes []*OvoTopologyNode
}

func NewOvoTopology

func NewOvoTopology(topology *cluster.ClusterTopology) *OvoTopology

type OvoTopologyNode

type OvoTopologyNode struct {
	Name      string
	HashRange []int
	Host      string
	Port      int
	State     string
	Twins     []string
}

func NewOvoTopologyNode

func NewOvoTopologyNode(node *cluster.ClusterTopologyNode) *OvoTopologyNode

Jump to

Keyboard shortcuts

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