group

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 = "group"

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 GetWithServer

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

func Post

func Post(session *gorethink.Session, r render.Render, grp Group)

Types

type Group

type Group struct {
	Id   string `gorethink:"id,omitempty" json:"id"`
	Name string `json:"name" form:"name" binding:"required"`
}

type GroupServer

type GroupServer struct {
	Id      string `gorethink:"id,omitempty" json:"id"`
	Name    string `json:"name"`
	Servers []struct {
		Id      string `gorethink:"id,omitempty" json:"id" form:"id"`
		Name    string `json:"name" form:"name"`
		Addr    string `json:"addr" form:"addr"`
		Port    int    `json:"port" form:"port"`
		Tunnel  string `json:"tunnel" form:"tunnel"`
		BaseDir string `json:"basedir" form:"basedir"`
	} `json:"servers"`
}

Jump to

Keyboard shortcuts

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