starter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Description  = "Start iris application service"
	Name         = "start"
	OptHost      = "host"
	OptHostDesc  = "Service address, e.g. 0.0.0.0"
	OptHostShort = 'h'
	OptPort      = "port"
	OptPortDesc  = "Service listen port, e.g. 8080"
	OptPortShort = 'p'
)

Variables

This section is empty.

Functions

func New

func New(runner func(ctx context.Context)) *console.Command

New creates a command instance.

Types

type Command

type Command struct {
	commands.Common
	// contains filtered or unexported fields
}

func (*Command) After

func (o *Command) After(_ context.Context, container *console.Container, _ *console.Command, err error)

func (*Command) Before

func (o *Command) Before(_ context.Context, _ *console.Container, command *console.Command) (err error)

func (*Command) Run

func (o *Command) Run(ctx context.Context, _ *console.Container, _ *console.Command) (err error)

Run starter command.

Jump to

Keyboard shortcuts

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