slave

package
v0.0.0-...-f867dd8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TMPDIR     = "./tmp"
	PROGRAM, _ = filepath.Abs(os.Args[0])
	SELFDIR    = filepath.Dir(PROGRAM)
	GOPM       = filepath.Join(SELFDIR, "bin/gopm")
	HOSTNAME   = "localhost"
	HOSTINFO   = &xrpc.HostInfo{Os: runtime.GOOS, Arch: runtime.GOARCH, Host: HOSTNAME}
)
View Source
var IsPrivateUpload bool //todo

Functions

func Action

func Action(c *cli.Context)

func GoInterval

func GoInterval(dur time.Duration, f func()) chan bool

Types

type NTMsg

type NTMsg struct {
	Status string
	Output string
	Extra  string
}

type Qiniu

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

func (*Qiniu) Upload

func (q *Qiniu) Upload(local string) (pubAddr string, err error)

type Storager

type Storager interface {
	Upload(localFile string) (pubAddr string, err error)
}

Jump to

Keyboard shortcuts

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