Documentation ¶
Index ¶
- Constants
- type AddReply
- type AddRequest
- type AssociatedOptions
- type AssociatedReply
- type AssociatedRequest
- type Batch
- type BatchReply
- type BatchRequest
- type CollectionInfo
- func (c CollectionInfo) NewAddRequest(key, value1, value2 string) *AddRequest
- func (c CollectionInfo) NewAssociatedRequest(key string) *AssociatedRequest
- func (c CollectionInfo) NewDeleteRequest(key, value1, value2 string) *DeleteRequest
- func (c CollectionInfo) NewDummyRequest() *DummyRequest
- func (c CollectionInfo) NewGetRequest(key string) *GetRequest
- func (c CollectionInfo) NewSyncRequest() *SyncRequest
- func (c CollectionInfo) NewUpdateRequest(update Update) *UpdateRequest
- type DeleteReply
- type DeleteRequest
- type DummyReply
- type DummyRequest
- type GetOptions
- type GetReply
- type GetRequest
- type SyncReply
- type SyncRequest
- type Transform
- type Update
- type UpdateReply
- type UpdateRequest
Constants ¶
View Source
const (
IdAdd = "Add"
)
View Source
const (
IdAssociated = "Associated"
)
View Source
const (
IdBatch = "Batch"
)
View Source
const (
IdDelete = "Delete"
)
View Source
const (
IdDummy = "Dummy"
)
View Source
const (
IdGet = "Get"
)
View Source
const (
IdSync = "Sync"
)
View Source
const (
IdUpdate = "Update"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRequest ¶
func (*AddRequest) Reply ¶
func (request *AddRequest) Reply(env *ws.Environment) (ws.Reply, error)
type AssociatedOptions ¶ added in v0.3.2
type AssociatedOptions struct {
MatchValue1 string
}
type AssociatedReply ¶ added in v0.1.8
type AssociatedReply struct { ws.ReplyStatus Result tiedb.TripleSet }
type AssociatedRequest ¶ added in v0.1.8
type AssociatedRequest struct { ws.Request CollectionInfo Key string AssociatedOptions }
func (*AssociatedRequest) Reply ¶ added in v0.1.8
func (request *AssociatedRequest) Reply(env *ws.Environment) (ws.Reply, error)
type Batch ¶
type Batch struct { Collection CollectionInfo AddRequests []*AddRequest GetRequests []*GetRequest DeleteRequests []*DeleteRequest UpdateRequests []*UpdateRequest }
type BatchReply ¶
type BatchReply struct { ws.ReplyStatus AddReplys []AddReply GetReplys []GetReply DeleteReplys []DeleteReply UpdateReplys []UpdateReply }
type BatchRequest ¶
func NewBatchRequest ¶
func NewBatchRequest(batch *Batch) *BatchRequest
func (*BatchRequest) Reply ¶
func (request *BatchRequest) Reply(env *ws.Environment) (ws.Reply, error)
type CollectionInfo ¶
func (CollectionInfo) NewAddRequest ¶
func (c CollectionInfo) NewAddRequest(key, value1, value2 string) *AddRequest
func (CollectionInfo) NewAssociatedRequest ¶ added in v0.1.8
func (c CollectionInfo) NewAssociatedRequest(key string) *AssociatedRequest
func (CollectionInfo) NewDeleteRequest ¶
func (c CollectionInfo) NewDeleteRequest(key, value1, value2 string) *DeleteRequest
func (CollectionInfo) NewDummyRequest ¶
func (c CollectionInfo) NewDummyRequest() *DummyRequest
func (CollectionInfo) NewGetRequest ¶
func (c CollectionInfo) NewGetRequest(key string) *GetRequest
func (CollectionInfo) NewSyncRequest ¶ added in v0.3.0
func (c CollectionInfo) NewSyncRequest() *SyncRequest
func (CollectionInfo) NewUpdateRequest ¶
func (c CollectionInfo) NewUpdateRequest(update Update) *UpdateRequest
type DeleteReply ¶
type DeleteReply struct { ws.ReplyStatus OrigValue1 string OrigValue2 string }
type DeleteRequest ¶
func (*DeleteRequest) Reply ¶
func (request *DeleteRequest) Reply(env *ws.Environment) (ws.Reply, error)
type DummyReply ¶
type DummyReply struct { ws.ReplyStatus Hello string }
type DummyRequest ¶
type DummyRequest struct { ws.Request CollectionInfo SomeData string }
func (*DummyRequest) Reply ¶
func (request *DummyRequest) Reply(env *ws.Environment) (ws.Reply, error)
type GetOptions ¶ added in v0.3.2
type GetReply ¶
type GetReply struct { ws.ReplyStatus Result tiedb.TripleSet NextLevelResult tiedb.TripleSet TotalCount int }
type GetRequest ¶
type GetRequest struct { ws.Request CollectionInfo Key string Options GetOptions }
func (*GetRequest) Reply ¶
func (request *GetRequest) Reply(env *ws.Environment) (ws.Reply, error)
type SyncReply ¶ added in v0.3.0
type SyncReply struct {
ws.ReplyStatus
}
type SyncRequest ¶ added in v0.3.0
type SyncRequest struct { ws.Request CollectionInfo }
func (*SyncRequest) Reply ¶ added in v0.3.0
func (request *SyncRequest) Reply(env *ws.Environment) (ws.Reply, error)
type UpdateReply ¶
type UpdateReply struct { ws.ReplyStatus OrigValue1 string OrigValue2 string OrigNewValue2 string }
type UpdateRequest ¶
type UpdateRequest struct { ws.Request CollectionInfo Update }
func (*UpdateRequest) Reply ¶
func (request *UpdateRequest) Reply(env *ws.Environment) (ws.Reply, error)
Click to show internal directories.
Click to hide internal directories.