startup

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

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 {
	// 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) 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 environment allows startup processor.

func (*Processor) ModuleExecute

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

Execute executes the startup tasks and return error if any.

func (*Processor) ModuleName

func (p *Processor) ModuleName() string

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

func (*Processor) ModuleStop

func (p *Processor) ModuleStop() (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
This package is for project's utilities
This package is for project's utilities
interop
Package interop provides structures and functions for syscall's data structure marshalling.
Package interop provides structures and functions for syscall's data structure marshalling.

Jump to

Keyboard shortcuts

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