app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_CONNECTED = iota
	STATUS_UP        = iota
	STATUS_DOWN      = iota
	STATUS_IN_USE    = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Connection net.Conn
	Manifest   *Manifest
	Status     int
	Priority   int
}

func NewApp

func NewApp() *App

func (*App) Send

func (a *App) Send(verb string, body map[string]interface{}) error

func (*App) StatusString

func (a *App) StatusString() string

type Capability

type Capability struct {
	Version *semver.Version
	Name    string
}

type Manifest

type Manifest struct {
	Name         string
	DisplayName  string
	InstanceId   string
	ApiVersion   int
	Description  string
	Version      *semver.Version
	Capabilities []*Capability
	Dependencies []*Capability
}

Jump to

Keyboard shortcuts

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