Documentation
¶
Index ¶
- func GetTag(s interface{}, field, key string) string
- func Main()
- func MainWithArgs(args []string)
- func MainWithConfig(cfg *Config)
- func ShowVersion()
- func Usage(cfg *Config)
- type Config
- type Goreman
- func (r *Goreman) List(args []string, ret *string) (err error)
- func (r *Goreman) Restart(args []string, ret *string) (err error)
- func (r *Goreman) RestartAll(args []string, ret *string) (err error)
- func (r *Goreman) Start(args []string, ret *string) (err error)
- func (r *Goreman) Status(args []string, ret *string) (err error)
- func (r *Goreman) Stop(args []string, ret *string) (err error)
- func (r *Goreman) StopAll(args []string, ret *string) (err error)
- type ProcInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MainWithArgs ¶
func MainWithArgs(args []string)
func MainWithConfig ¶
func MainWithConfig(cfg *Config)
func ShowVersion ¶
func ShowVersion()
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 ¶
Click to show internal directories.
Click to hide internal directories.