Documentation ¶
Index ¶
- type AuthorizeResponse
- type Change
- type Client
- func (client *Client[DT]) Authorize(username string, password string) (string, error)
- func (client *Client[DT]) ConnectToSocket(ctx context.Context) error
- func (client *Client[DT]) DisconnectSocket() error
- func (client *Client[DT]) ReadMessage(ctx context.Context) (string, error)
- func (client *Client[DT]) WriteChangeMessage(ctx context.Context, channel int, changeVersion string, entityVersion int, ...) (string, error)
- func (client *Client[DT]) WriteChangeVersionMessage(ctx context.Context, channel int, changeVersion string) error
- func (client *Client[DT]) WriteIndexMessage(ctx context.Context, channel int, returnData bool, offset string, mark string, ...) error
- func (client *Client[DT]) WriteInitMessage(ctx context.Context, channel int, token string, bucketName string) error
- type EntitySummary
- type IndexMessageResponse
- type InitMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeResponse ¶
type Change ¶
type Change[T interface{}] struct { ClientID string `json:"clientid,omitempty"` ChangeVersion string `json:"cv,omitempty"` EndVersion int `json:"ev,omitempty"` SourceVersion int `json:"sv,omitempty"` EntityID string `json:"id"` Operation string `json:"o"` Values T `json:"v,omitempty"` ChangeID string `json:"ccid,omitempty"` // download changes only ChangeIDs []string `json:"ccids,omitempty"` // upload changes only Data *struct{} `json:"d,omitempty"` Error int `json:"error,omitempty"` }
type Client ¶
type Client[DiffType interface{}] struct {
// contains filtered or unexported fields
}
func (*Client[DT]) ConnectToSocket ¶
func (*Client[DT]) DisconnectSocket ¶
func (*Client[DT]) ReadMessage ¶
func (*Client[DT]) WriteChangeMessage ¶
func (*Client[DT]) WriteChangeVersionMessage ¶
func (*Client[DT]) WriteIndexMessage ¶
type EntitySummary ¶
type IndexMessageResponse ¶
type IndexMessageResponse[T any] struct { CurrentVersion string `json:"current"` Entities []EntitySummary[T] `json:"index"` Mark string `json:"mark"` }
Click to show internal directories.
Click to hide internal directories.