xrpc

package
v0.0.0-...-82d6ef7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2014 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UT_QINIU = "up-qiniu"
	UT_FTP   = "up-ftp"
)

Variables

View Source
var DefaultWebAddress = "localhost:8010"

Functions

func Call

func Call(method string, args interface{}, reply interface{}) error

func HandleRpc

func HandleRpc()

Types

type BuildInfo

type BuildInfo struct {
	Action     string // build or just package source
	CgoEnable  bool
	Os, Arch   string
	UploadType string // cnd(like qiniu) or ftp
	UploadData string // encoded data
}

type HostInfo

type HostInfo struct {
	Os, Arch string
	Host     string
}

type Mission

type Mission struct {
	Idle time.Duration
	Mid  int64

	// Repo        string
	PushURI string
	Repo    *models.Repository

	CgoEnable bool

	PkgInfo []byte // store it to gobuild.pkginfo
	Builds  []BuildInfo
}

type MissionStatus

type MissionStatus struct {
	Mid    int64 // mission id
	Status string
	Output string
	Extra  string
}

type PkgInfo

type PkgInfo struct {
	MainFile    string   `json:"main_file"`
	Author      []string `json:"author"`
	From        string   `json:"from"`
	Description string   `json:"description"`
	Created     string   `json:"created"`
	Os          string   `json:"os"`
	Arch        string   `json:"arch"`
	PushURI     string   `json:"push_uri"`
}

type PublishInfo

type PublishInfo struct {
	Mid        int64
	ZipBallUrl string
}

type QiniuInfo

type QiniuInfo struct {
	Key    string
	Token  string
	Bulket string
}

type Rpc

type Rpc struct{}

func (*Rpc) GetMission

func (r *Rpc) GetMission(args *HostInfo, rep *Mission) error

func (*Rpc) UpdateMissionStatus

func (r *Rpc) UpdateMissionStatus(args *MissionStatus, reply *bool) error

func (*Rpc) UpdatePubAddr

func (r *Rpc) UpdatePubAddr(args *PublishInfo, reply *bool) error

func (*Rpc) UpdateRepository

func (r *Rpc) UpdateRepository(ri *models.Repository, reply *bool) error

Jump to

Keyboard shortcuts

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