Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PushDeltas ¶
PushDeltas pushes deltas into the document.
type Delta ¶
type Delta struct { Action DeltaAction `json:"action"` Lines []string `json:"lines"` Start Position `json:"start"` End Position `json:"end"` // contains filtered or unexported fields }
type DeltaAction ¶
type DeltaAction bool
const ( DeltaInsert DeltaAction = true DeltaRemove DeltaAction = false )
func (DeltaAction) MarshalJSON ¶
func (d DeltaAction) MarshalJSON() ([]byte, error)
func (DeltaAction) String ¶
func (d DeltaAction) String() string
func (*DeltaAction) UnmarshalJSON ¶
func (d *DeltaAction) UnmarshalJSON(b []byte) error
type DeltaHandler ¶
type DeltaHandlerFunc ¶
func (DeltaHandlerFunc) Handle ¶
func (fn DeltaHandlerFunc) Handle(d []Delta) error
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func (*Document) Client ¶
func (d *Document) Client(h DeltaHandler) *Client
func (*Document) InDocument ¶
Click to show internal directories.
Click to hide internal directories.