Documentation ¶
Index ¶
Constants ¶
View Source
const ForwarderLOGO = `` /* 150-byte string literal not displayed */
View Source
const ForwarderUsage = `` /* 657-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func RemovePIDFile ¶
func RemovePIDFile(pidfile string)
func WritePIDFile ¶
Types ¶
type Command ¶
type Command struct { Logo string Usage string Pidfile string Closed chan struct{} Logger *logger.Logger Command *cobra.Command ServiceName string Server Server Config *conf.Config NewServerFunc func(conf.Config, *cobra.Command, *logger.Logger) (Server, error) // contains filtered or unexported fields }
Command represents the command executed by "ts-xxx run".
func NewCommand ¶
func NewCommand() *Command
type Options ¶
Options represents the command line options that can be parsed.
func ParseFlags ¶
func (*Options) GetConfigPath ¶
Click to show internal directories.
Click to hide internal directories.