task

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinKeyTask

func MinKeyTask(info config.WatchInfo) db.Task

func PostForceSync

func PostForceSync()

func PostForceSyncAndWait

func PostForceSyncAndWait()

PostForceSyncAndWait sync all

func PostRunTask

func PostRunTask()

func Start

func Start()

func SyncATask

func SyncATask(w *config.WatchInfo) error

Types

type Proxy

type Proxy interface {
	Do(ctx context.Context, ty Type, db, coll string, data []bson.Raw) (ok bool)
}
var Sender Proxy = &http{}

type Request

type Request struct {
	T Type
	// T == ChangeStream, Ns = {DB: "", Coll: ""}
	Ns   ns
	Data []bson.Raw
}

type Response

type Response struct {
}

type Type

type Type byte
const (
	Sync Type = iota
	ChangeStream
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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