res

package
v0.0.0-...-e6abc26 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

get srv urls

Index

Constants

This section is empty.

Variables

View Source
var (
	DbHost  = "127.0.0.1"
	DbUser  = "devops"
	DbPass  = "devops"
	DbName  = "devops"
	Charset = "utf8"
	DbPort  = 3306
	DbDebug = true
)

Functions

func ChkSrv

func ChkSrv(url string)

func ChkSrv(url string) (string, error) {

func GetSrvHlthUrl

func GetSrvHlthUrl() (string, error)

从数据库中获取数据

Types

type AppInfo

type AppInfo struct {
	gorm.Model
	AppID    int
	Name     string `gorm:"size:100:unique; not null;"` // 业务名称
	Port     string `gorm:"size:50;"`                   // 项目生命周期
	AppUrl   string `gorm:"size:100;"`                  // 业务对外地址,接口
	Env      string `gorm:"size:50;"`                   // 业务当前环境
	AppType  string `gorm:"size:50:not null;"`          // 业务生命周期
	Version  string `gorm:"size:50;"`                   // 业务对外地址,接口
	AppDocs  string `gorm:"size:50;"`                   // 接口地址,文档
	Status   string `gorm:"size:45;"`                   // 项目状态
	Notes    string `gorm:"size:100;"`                  // 备注
	Operator string `gorm:"size:50;"`                   // 记录操作人, 方便定位

}

func GetData

func GetData() []AppInfo

type LogSrv

type LogSrv struct {
	Message string `json:"message"`
	Code    int    `json:"code"`
	Data    struct {
		Status string `json:"status"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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