cli

package
v0.0.0-...-4b56e16 Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kernel

type Kernel struct {
	Application *larago.Application
	// contains filtered or unexported fields
}

Kernel for cli commands.

func NewKernel

func NewKernel() *Kernel

NewKernel constructor.

func (*Kernel) Handle

func (k *Kernel) Handle()

Handle console commands.

func (*Kernel) SetBootstrappers

func (k *Kernel) SetBootstrappers(bootstrappers ...larago.Bootstrapper)

SetBootstrappers sets Application bootstrappers.

type SignalsHandler

type SignalsHandler struct {
	Events      *EventBus.EventBus
	ExitHandler larago.ExitHandler
}

SignalsHandler handles cli signals.

func (*SignalsHandler) CatchInterrupt

func (h *SignalsHandler) CatchInterrupt()

CatchInterrupt handles sigterm.

Jump to

Keyboard shortcuts

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