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 ¶
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
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
Click to show internal directories.
Click to hide internal directories.