dhost

package
v0.0.0-...-000f062 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(ctx *macaron.Context) string

All 获取所有主机

func Detail

func Detail(ctx *macaron.Context) string

Detail 主机详情

func Index

func Index(ctx *macaron.Context) string

Index 主机列表

func Ping

func Ping(ctx *macaron.Context) string

Ping 测试主机是否可连接

func Remove

func Remove(ctx *macaron.Context) string

Remove 删除主机

func Store

func Store(ctx *macaron.Context, form DHostForm) string

Store 保存、修改主机信息

func UIAll

func UIAll() []models.DHost

All 获取所有主机

func UIStore

func UIStore(form DHostForm) (error, string, int16)

Store 保存、修改主机信息

Types

type DHostForm

type DHostForm struct {
	Id           int16
	Name         string `binding:"Required;MaxSize(64)"`
	Host         string `binding:"Required;MaxSize(64)"`
	Port         int64  `binding:"Required;Range(1-65535)"`
	Remark       string
	Databasetype string
	User         string
	Password     string
	Database     string
	Charset      string
	Locate       string
	Version      string
	Sqlpath      string
	Local        int16
}

func (DHostForm) Error

func (f DHostForm) Error(ctx *macaron.Context, errs binding.Errors)

Error 表单验证错误处理

Jump to

Keyboard shortcuts

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