sequencer

package
v0.0.0-...-b1763eb Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package sequencer reads mutations and applies them to the Trillian Map.

Index

Constants

View Source
const MaxBatchSize = int32(1000)

MaxBatchSize limits the number of mutations that will be processed per epoch.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sequencer

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

Sequencer processes mutations and sends them to the trillian map.

func New

New creates a new instance of the signer.

func (*Sequencer) Close

func (s *Sequencer) Close()

Close stops all receivers and releases resources.

func (*Sequencer) ListenForNewDomains

func (s *Sequencer) ListenForNewDomains(ctx context.Context, refresh time.Duration) error

ListenForNewDomains starts receivers for all domains and periodically checks for new domains.

func (*Sequencer) NewReceiver

func (s *Sequencer) NewReceiver(ctx context.Context, domain *domain.Domain, minInterval, maxInterval time.Duration) mutator.Receiver

NewReceiver creates a new receiver for a domain. New epochs will be created at least once per maxInterval and as often as minInterval.

Jump to

Keyboard shortcuts

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