run

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

@Time : 2018/5/10 11:19 @Author : seefan @File : kill @Software: function

@Time : 2018/5/10 10:52 @Author : seefan @File : nohup @Software: function

@Time : 2019-01-25 15:55 @Author : seefan @File : run @Software: microgo

@Time : 2020-05-07 10:55 @Author : seefan @File : run @Software: microgo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kill

func Kill(pid int) error

func ParseFlag added in v0.2.1

func ParseFlag(args []string) map[string]string

ParseFlag parse flags

func PrintUseage added in v0.2.1

func PrintUseage(name string, arg map[string]string)

PrintUseage print help infomation

func Run

func Run(run func() Runnable, outFile ...string)

Run the new Runnable

func StopByPidFile

func StopByPidFile(pidFile string) error

Types

type Runnable

type Runnable interface {
	Start() error
	Stop() error
}

Runnable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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