packs

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidServerSeq is returned when the given server seq greater than
	// the initial server seq.
	ErrInvalidServerSeq = errors.New("invalid server seq")
)

Functions

func NewPushPullKey added in v0.1.6

func NewPushPullKey(documentKey *key.Key) sync.Key

NewPushPullKey creates a new sync.Key of PushPull for the given document.

func NewSnapshotKey added in v0.1.6

func NewSnapshotKey(documentKey *key.Key) sync.Key

NewSnapshotKey creates a new sync.Key of Snapshot for the given document.

func PushPull

func PushPull(
	ctx context.Context,
	be *backend.Backend,
	clientInfo *db.ClientInfo,
	docInfo *db.DocInfo,
	reqPack *change.Pack,
) (*change.Pack, error)

PushPull stores the given changes and returns accumulated changes of the given document.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL