boot

package
v0.0.0-...-a0027d1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: BSD-3-Clause Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidStorageKind

func IsInvalidStorageKind(err error) bool

IsInvalidStorageKind asserts invalidStorageKindError.

Types

type Command

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

Command represents the boot command.

func New

func New() *Command

New creates a new boot command.

func (*Command) Boot

func (c *Command) Boot()

Boot makes the neural network boot and run.

func (*Command) Execute

func (c *Command) Execute(cmd *cobra.Command, args []string)

Execute represents the cobra run method.

func (*Command) ForceShutdown

func (c *Command) ForceShutdown()

ForceShutdown forces the process to stop immediately.

func (*Command) ListenToSignal

func (c *Command) ListenToSignal()

ListenToSignal listens to OS signals to be catched and processed if desired.

func (*Command) New

func (c *Command) New() *cobra.Command

New creates a new cobra command for the boot command.

func (*Command) SetConfigCollection

func (c *Command) SetConfigCollection(configCollection *config.Collection)

SetConfigCollection sets the config collection for the boot command to configure the neural network.

func (*Command) SetGitCommit

func (c *Command) SetGitCommit(gitCommit string)

SetGitCommit sets the git commit for the version command to be displayed.

func (*Command) SetGoArch

func (c *Command) SetGoArch(goArch string)

SetGoArch sets the go architecture for the version command to be displayed.

func (*Command) SetGoOS

func (c *Command) SetGoOS(goOS string)

SetGoOS sets the go OS for the version command to be displayed.

func (*Command) SetGoVersion

func (c *Command) SetGoVersion(goVersion string)

SetGoVersion sets the go version for the version command to be displayed.

func (*Command) SetProjectVersion

func (c *Command) SetProjectVersion(projectVersion string)

SetProjectVersion sets the project version for the version command to be displayed.

func (*Command) Shutdown

func (c *Command) Shutdown()

Shutdown initializes the shutdown of the neural network.

Jump to

Keyboard shortcuts

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