tory

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2014 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BranchString    = "?"
	CompiledTime    time.Time
	GeneratedString = "?"
	RevisionString  = "?"
	VersionString   = "?"
)

Functions

func MigrateMain

func MigrateMain(dbConnStr string)

func ServerMain

func ServerMain(opts *ServerOptions)

ServerMain is the whole shebang

Types

type HostJSON

type HostJSON struct {
	ID int64 `json:"id,omitempty"`

	Name string `json:"name"`
	IP   string `json:"ip"`

	Package string `json:"package,omitempty"`
	Image   string `json:"image,omitempty"`
	Type    string `json:"type,omitempty"`

	Tags map[string]interface{} `json:"tags,omitempty"`
	Vars map[string]interface{} `json:"vars,omitempty"`
}

func NewHostJSON

func NewHostJSON() *HostJSON

type HostPayload

type HostPayload struct {
	Host *HostJSON `json:"host"`
}

type ServerOptions

type ServerOptions struct {
	Addr        string
	AuthToken   string
	DatabaseURL string
	Prefix      string
	Quiet       bool
	StaticDir   string
	Verbose     bool
}

ServerOptions contains everything needed to build a Server

Jump to

Keyboard shortcuts

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