app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v1.1.0

func Run(app *cobra.Command, args []string, initializers ...interface{}) error

func RunCustom added in v1.1.0

func RunCustom(app *cobra.Command, args []string, runnable interface{}, initializers ...interface{}) error

Types

type Actor

type Actor interface {
	Run() error
	Interrupt(error)
}

type ActorResult

type ActorResult struct {
	dig.Out
	Actor Actor `group:"actors"`
}

func NewGRPCServerActor added in v1.1.0

func NewGRPCServerActor(server *grpc.Server, socket net.Listener, logger Logger) ActorResult

func NewSignalActor

func NewSignalActor(logger Logger) ActorResult

type ActorsResult

type ActorsResult struct {
	dig.In
	Actors []Actor `group:"actors"`
}

type Command added in v1.1.0

type Command = cobra.Command

type Config added in v1.1.0

type Config = viper.Viper

type Input added in v1.1.0

type Input = dig.In

type Logger

type Logger interface {
	Println(args ...interface{})
}

type Runner added in v1.1.0

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

Jump to

Keyboard shortcuts

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