cmder

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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