server

package
v0.0.0-...-be0f741 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TABLE string = "server"

Variables

This section is empty.

Functions

func Delete

func Delete(session *gorethink.Session, r render.Render, params martini.Params)

func Get

func Get(session *gorethink.Session, r render.Render)

func Post

func Post(session *gorethink.Session, r render.Render, svr Server)

Types

type Server

type Server struct {
	Id       string   `gorethink:"id,omitempty" json:"id" form:"id"`
	Name     string   `json:"name" form:"name" binding:"required"`
	Addr     string   `json:"addr" form:"addr" binding:"required"`
	Port     int      `json:"port" form:"port" binding:"required"`
	Tunnel   string   `json:"tunnel" form:"tunnel"`
	BaseDir  string   `json:"basedir" form:"basedir"`
	GroupIds []string `json:"groupIds" form:"groupIds" binding:"required"`
}

Jump to

Keyboard shortcuts

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