Documentation ¶
Overview ¶
Package endpoint provides some specific factories to provide Endpoints to the sync library
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointFromURI ¶
EndpointFromURI parse an URI string to instantiate a proper Endpoint
func NewSnapshotFactory ¶
Types ¶
type PatchStore ¶
type PatchStore struct {
// contains filtered or unexported fields
}
func NewPatchStore ¶
func (*PatchStore) Load ¶
func (p *PatchStore) Load(offset, limit int) (patches []merger.Patch, e error)
func (*PatchStore) PublishPatch ¶
func (p *PatchStore) PublishPatch(patch merger.Patch)
PublishPatch pushes patch to the persist queue
func (*PatchStore) Stop ¶
func (p *PatchStore) Stop()
func (*PatchStore) Store ¶
func (p *PatchStore) Store(patch merger.Patch)
type SnapshotFactory ¶
func (*SnapshotFactory) Load ¶
func (f *SnapshotFactory) Load(source model.PathSyncSource) (model.Snapshoter, error)
Load creates or loads an existing snapshot from within the application dir
Click to show internal directories.
Click to hide internal directories.