replica

package
v0.0.0-...-0778f37 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

replica is responsible for launching and coordinating processes such as assembly and parsing for the primary

Index

Constants

View Source
const (
	// Assembly tells the replica that it needs to launch an assembly process
	Assembly = "assembly"
	// Parse tells the replica that it needs to launch a parse process
	Parse = "parse"
	// QualityControl tells the replica that it needs to launch a quality control process
	QualityControl = "quality_control"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentWorkType

type ComponentWorkType string

the type of component that runs on a specific set of assembly files

type Mock

type Mock struct {
	mock.Mock
	// contains filtered or unexported fields
}

Mock is a replica mock

func NewMock

func NewMock(config *config_parser.Config, workType ComponentWorkType) *Mock

NewMock creates and returns a new instance of a replica

func (*Mock) Process

func (s *Mock) Process() error

Process mocks the original replica process function

type Replica

type Replica interface {
	// Process performs the work that's dictated by the primary
	Process() ([]*result.Result, error)
}

Replica defines the operations that are accessible on a replica

func New

func New(config *config_parser.Config, workType ComponentWorkType) Replica

New creates and returns a new instance of a replica

Directories

Path Synopsis
defines interfaces that have to be satisfied by components
defines interfaces that have to be satisfied by components
assembler
contains the definition and work associated with assemblers
contains the definition and work associated with assemblers

Jump to

Keyboard shortcuts

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