replicate

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

`replicate.Processor` watches event journals and replicates selected events to other journals.

Index

Constants

View Source
const (
	NsFsoRegistry = "fsoreg"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Infow(msg string, kv ...interface{})
	Warnw(msg string, kv ...interface{})
	Errorw(msg string, kv ...interface{})
}

type Op

type Op int
const (
	OpUnspecified Op = iota
	OpInit
	OpUpdate
)

type Processor

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

func NewProcessor

func NewProcessor(
	lg Logger,
	names *shorteruuid.Names,
	mainJ *events.Journal,
	registryJ *events.Journal,
	reposJ *events.Journal,
	workflowsJ *events.Journal,
	registry *fsoregistry.Registry,
	repos *fsorepos.Repos,
	moveRepoWorkflows *moverepowf.Workflows,
	moveShadowWorkflows *moveshadowwf.Workflows,
	mainId uuid.I,
) *Processor

func (*Processor) Process

func (p *Processor) Process(ctx context.Context) error

Jump to

Keyboard shortcuts

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