goreman

package
v0.0.0-...-6596af9 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTag

func GetTag(s interface{}, field, key string) string

func Main

func Main()

func MainWithArgs

func MainWithArgs(args []string)

func MainWithConfig

func MainWithConfig(cfg *Config)

func ShowVersion

func ShowVersion()

func Usage

func Usage(cfg *Config)

Types

type Config

type Config struct {
	FlagSet *pflag.FlagSet
	Args    []string

	Procfile       string `yaml:"procfile" mapstructure:"procfile" description:"proc file" default:"Procfile"`
	StartRpcServer bool   `yaml:"rpc-server" mapstructure:"rpc-server" description:"start an RPC server" default:"true"`
	RpcPort        uint   `yaml:"port" mapstructure:"port" description:"port" default:"8555"`
	BaseDir        string `yaml:"basedir" mapstructure:"basedir" description:"base directory" default:""`
	BasePort       uint   `yaml:"baseport" mapstructure:"baseport" description:"base port" default:"5000"`
	ExitOnError    bool   `yaml:"exit_on_error" mapstructure:"exit_on_error" description:"exit on error" default:"false"`
	ExitOnStop     bool   `yaml:"exit_on_stop" mapstructure:"exit_on_stop" description:"exit on stop" default:"true"`
	SetPorts       bool   `` /* 126-byte string literal not displayed */
	LogTime        bool   `yaml:"logtime" mapstructure:"logtime" description:"show timestamp in log" default:"true"`
}

func ParseConfig

func ParseConfig(args []string) *Config

func ParseConfigWithFlagSet

func ParseConfigWithFlagSet(fs *pflag.FlagSet, args []string) *Config

type Goreman

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

Goreman is RPC server

func (*Goreman) List

func (r *Goreman) List(args []string, ret *string) (err error)

List do list

func (*Goreman) Restart

func (r *Goreman) Restart(args []string, ret *string) (err error)

Restart do restart

func (*Goreman) RestartAll

func (r *Goreman) RestartAll(args []string, ret *string) (err error)

RestartAll do restart all

func (*Goreman) Start

func (r *Goreman) Start(args []string, ret *string) (err error)

Start do start

func (*Goreman) Status

func (r *Goreman) Status(args []string, ret *string) (err error)

Status do status

func (*Goreman) Stop

func (r *Goreman) Stop(args []string, ret *string) (err error)

Stop do stop

func (*Goreman) StopAll

func (r *Goreman) StopAll(args []string, ret *string) (err error)

StopAll do stop all

type ProcInfo

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

-- process information structure.

Jump to

Keyboard shortcuts

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