cmder

package
v4.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has added in v4.1.0

func Has(name string) bool

func Register

func Register(name string, cmder Cmder)

func Unregister

func Unregister(name string)

Types

type Cmder

type Cmder interface {
	Init() error
	StopHistory(...string) error
	Start(writer ...io.Writer) error
	Stop() error
	Reload() error
	Restart(writer ...io.Writer) error
}

func Get

func Get(name string) Cmder

type RestartBy

type RestartBy interface {
	RestartBy(id string, writer ...io.Writer) error
}

type Simple

type Simple struct {
}

func NewSimple

func NewSimple() *Simple

func (*Simple) Init

func (s *Simple) Init() error

func (*Simple) Reload

func (s *Simple) Reload() error

func (*Simple) Restart

func (s *Simple) Restart(writer ...io.Writer) error

func (*Simple) Start

func (s *Simple) Start(writer ...io.Writer) error

func (*Simple) Stop

func (s *Simple) Stop() error

func (*Simple) StopHistory

func (s *Simple) StopHistory(...string) error

type StartBy

type StartBy interface {
	StartBy(id string, writer ...io.Writer) error
}

type StopBy

type StopBy interface {
	StopBy(id string) error
}

Jump to

Keyboard shortcuts

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