host

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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