ProcessManager

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

ProcessManager

uses to build DependencyInjection Container

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinishPoint

type FinishPoint string

type Manager

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

func (*Manager) AddProcess

func (manager *Manager) AddProcess(process *Process)

func (*Manager) Run

func (manager *Manager) Run() error

type Process

type Process struct {
	BeforeFinishPoint FinishPoint  // this process must happen after this FinishPoint come out  (may be empty)
	AfterFinishPoint  FinishPoint  // this process must happen before this FinishPoint come out (may be empty)
	ResultCondition   FinishPoint  // this process will product a FinishPoint ,if it runs       (may be empty)
	Work              func() error // the work to do
}

if some condition is not exist ,they are error return

Jump to

Keyboard shortcuts

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