exec

package
v0.0.0-...-8df46b2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reg

func Reg(apater string, cmd Commd) error

Reg 注册

func Run

func Run(cmd *models.CmdInfo) (result interface{}, err error)

Run 执行命令

Types

type Commd

type Commd interface {
	Exec(cmd *models.CmdInfo) (result interface{}, err error)
}

Commd 借款信息

type MssqlCmd

type MssqlCmd struct {
}

MssqlCmd 执行MSSQL脚本

func (*MssqlCmd) Exec

func (c *MssqlCmd) Exec(cmd *models.CmdInfo) (interface{}, error)

Exec 执行命令

type OSCommand

type OSCommand struct {
}

OSCommand OS command 执行

func (*OSCommand) Exec

func (c *OSCommand) Exec(cmd *models.CmdInfo) (interface{}, error)

Exec 执行命令

Jump to

Keyboard shortcuts

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