Documentation ¶ Index ¶ func Create(ctx *macaron.Context) func Edit(ctx *macaron.Context) func Index(ctx *macaron.Context) func Ping(ctx *macaron.Context) string func Remove(ctx *macaron.Context) string func Store(ctx *macaron.Context, form HostForm) string type HostForm func (f HostForm) Error(ctx *macaron.Context, errs binding.Errors) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Create ¶ func Create(ctx *macaron.Context) func Edit ¶ func Edit(ctx *macaron.Context) func Index ¶ func Index(ctx *macaron.Context) func Ping ¶ func Ping(ctx *macaron.Context) string func Remove ¶ func Remove(ctx *macaron.Context) string func Store ¶ func Store(ctx *macaron.Context, form HostForm) string Types ¶ type HostForm ¶ type HostForm struct { Id int16 Name string `binding:"Required;MaxSize(64)"` Alias string `binding:"Required;MaxSize(32)"` Port int `binding:"Required;Range(1-65535)"` CertFile string Token string Remark string } func (HostForm) Error ¶ func (f HostForm) Error(ctx *macaron.Context, errs binding.Errors) Source Files ¶ View all Source files host.go Click to show internal directories. Click to hide internal directories.