cmder

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupported             = errors.New("unsupported")
	ErrNoAvailibaleConfigFound = errors.New(`No available configurations found`)
)

Functions

func NewClient

func NewClient() cmder.Cmder

func NewServer

func NewServer() cmder.Cmder

Types

type Base

type Base struct {
	CLIConfig *config.CLIConfig
}

func NewBase

func NewBase() *Base

func (*Base) ConfigFile

func (c *Base) ConfigFile(id uint, isServer bool) string

func (*Base) MustRebuildConfigFile

func (c *Base) MustRebuildConfigFile(data interface{}) error

func (*Base) PidFile

func (c *Base) PidFile(id string, isServer bool) string

func (*Base) RebuildConfigFile

func (c *Base) RebuildConfigFile(data interface{}) error

func (*Base) Reload

func (c *Base) Reload() error

type FRPClient

type FRPClient struct {
	*Base
}

func GetClient

func GetClient() (*FRPClient, error)

func (*FRPClient) Boot added in v1.3.2

func (c *FRPClient) Boot() error

func (*FRPClient) Restart

func (c *FRPClient) Restart(writer ...io.Writer) error

func (*FRPClient) RestartBy

func (c *FRPClient) RestartBy(id string, writer ...io.Writer) error

func (*FRPClient) Start

func (c *FRPClient) Start(writer ...io.Writer) (err error)

func (*FRPClient) StartBy

func (c *FRPClient) StartBy(id uint, writer ...io.Writer) (err error)

func (*FRPClient) Stop

func (c *FRPClient) Stop() error

func (*FRPClient) StopBy

func (c *FRPClient) StopBy(id string) error

func (*FRPClient) StopHistory

func (c *FRPClient) StopHistory(ids ...string) error

type FRPServer

type FRPServer struct {
	*Base
}

func GetServer

func GetServer() (*FRPServer, error)

func (*FRPServer) Boot added in v1.3.2

func (c *FRPServer) Boot() error

func (*FRPServer) Restart

func (c *FRPServer) Restart(writer ...io.Writer) error

func (*FRPServer) RestartBy

func (c *FRPServer) RestartBy(id string, writer ...io.Writer) error

func (*FRPServer) Start

func (c *FRPServer) Start(writer ...io.Writer) (err error)

func (*FRPServer) StartBy

func (c *FRPServer) StartBy(id uint, writer ...io.Writer) (err error)

func (*FRPServer) Stop

func (c *FRPServer) Stop() error

func (*FRPServer) StopBy

func (c *FRPServer) StopBy(id string) error

func (*FRPServer) StopHistory

func (c *FRPServer) StopHistory(ids ...string) error

Jump to

Keyboard shortcuts

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