oplog

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Op

type Op struct {
	Event string
	Data  string
}

type Oplog

type Oplog struct {
	// contains filtered or unexported fields
}

func New

func New(client *clientutil.ClientUtil) *Oplog

func (*Oplog) GetBlob

func (o *Oplog) GetBlob(ctx context.Context, hash string) ([]byte, error)

Get fetch the given blob from the remote BlobStash instance.

func (*Oplog) Notify

func (o *Oplog) Notify(ctx context.Context, ops chan<- *Op, connCallback func()) error

FIXME(tsileo): use a ctx and support cancelation

Jump to

Keyboard shortcuts

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