docHistory

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(ctx context.Context, db *mongo.Database, rTx, tx pgx.Tx, limit int) error

Types

type ForPQ

type ForPQ struct {
	Id        primitive.ObjectID `bson:"_id"`
	ProjectId primitive.ObjectID `bson:"project_id"`
	DocId     primitive.ObjectID `bson:"doc_id"`
	Pack      []struct {
		Op []struct {
			Deletion  string `bson:"d"`
			Insertion string `bson:"i"`
			Position  int    `bson:"p"`
		} `bson:"op"`
		Meta struct {
			StartTS int64              `bson:"start_ts"`
			EndTS   int64              `bson:"end_ts"`
			UserId  primitive.ObjectID `bson:"user_id"`
		}
		Version sharedTypes.Version `bson:"v"`
	} `bson:"pack"`
}

Jump to

Keyboard shortcuts

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