Documentation ¶
Overview ¶
tie-common project tie-common.go
Index ¶
Constants ¶
View Source
const ( RequestTypeAdd = iota RequestTypeGet RequestTypeDelete RequestTypeUpdate RequestTypeBatch ReplyTypeEmpty ReplyTypeStatus ReplyTypeGet ReplyTypeBatch )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Add ¶
type Add struct { Key string Value1 string Value2 string // contains filtered or unexported fields }
func NewAddRequest ¶
func (*Add) RequestType ¶
type Batch ¶
type Batch struct { Add []*Add Get []*Get Delete []*Delete Update []*Update // contains filtered or unexported fields }
func NewBatchRequest ¶
func NewBatchRequest() *Batch
func (*Batch) RequestType ¶
type Delete ¶
type Delete struct { Key string Value1 string Value2 string // contains filtered or unexported fields }
func NewDeleteRequest ¶
func (*Delete) RequestType ¶
type Get ¶
type Get struct { Values []string NextLevelValues []string Filter string MaxAssociations int // contains filtered or unexported fields }
func NewGetRequest ¶
func (*Get) RequestType ¶
type Reply ¶
type Reply struct { RequestString string ReplyType uint ReplyStruct interface{} ReplyRawResponse json.RawMessage }
func CreateReply ¶
func (*Reply) DataBatch ¶
func (r *Reply) DataBatch() *ReplyBatch
func (*Reply) DataStatus ¶
func (r *Reply) DataStatus() *ReplyStatus
type ReplyBatch ¶
type ReplyBatch struct { Add []ReplyStatus Get [][]*tiedb.StringSliceSet Delete []ReplyStatus Update []ReplyStatus }
type ReplyGetSlice ¶
type ReplyGetSlice []struct { Result []ReplyGet }
type ReplyStatus ¶
Click to show internal directories.
Click to hide internal directories.