startup

package
v0.0.0-...-7638cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package startup implements startup plugin processor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	contracts.ICorePlugin
	// contains filtered or unexported fields
}

Processor is an object that can process startup tasks.

func NewProcessor

func NewProcessor(context context.T) *Processor

NewProcessor creates and returns StartupProcessor object.

func (*Processor) Execute

func (p *Processor) Execute(context context.T) (err error)

Execute executes the startup tasks and return error if any.

func (*Processor) ExecuteTasks

func (p *Processor) ExecuteTasks() (err error)

ExecuteTasks executes startup tasks in unix platform.

func (*Processor) IsAllowed

func (p *Processor) IsAllowed() bool

IsAllowed returns true if the current platform allows startup processor.

func (*Processor) Name

func (p *Processor) Name() string

Name returns the name of the processor that executes the startup tasks.

func (*Processor) RequestStop

func (p *Processor) RequestStop(stopType contracts.StopType) (err error)

RequestStop is not necessarily used since startup task only happens once.

Directories

Path Synopsis
Package model provides model definition for startup processor
Package model provides model definition for startup processor
Package serialport implements serial port capabilities
Package serialport implements serial port capabilities

Jump to

Keyboard shortcuts

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