do

package
v0.0.0-...-2828958 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminLogin

type AdminLogin struct {
	ID       int
	Username string
	Password string
	Salt     string
}

AdminLogin 业务逻辑实体

func (*AdminLogin) PasswordCheck

func (adminLogin *AdminLogin) PasswordCheck(salt, password string) bool

PasswordCheck 密码校验

type AdminSessionInfo

type AdminSessionInfo struct {
	ID        int       `json:"id"`
	Username  string    `json:"user_name"`
	LoginTime time.Time `json:"login_time"`
}

AdminSessionInfo 管理员登录的 Session

type ChangePwd

type ChangePwd struct {
	Password string
}

type DashboardServiceStat

type DashboardServiceStat struct {
	Name  int    `db:"name"`
	Value string `db:"value"`
}

type ServiceDetail

type ServiceDetail struct {
	Info          *po.ServiceInfo          `json:"info" description:"基本信息"`
	HTTPRule      *po.ServiceHTTPRule      `json:"http_rule" description:"http_rule"`
	TCPRule       *po.ServiceTCPRule       `json:"tcp_rule" description:"tcp_rule"`
	GRPCRule      *po.ServiceGRPCRule      `json:"grpc_rule" description:"grpc_rule"`
	LoadBalance   *po.ServiceLoadBalance   `json:"load_balance" description:"load_balance"`
	AccessControl *po.ServiceAccessControl `json:"access_control" description:"access_control"`
}

ServiceDetail 查询服务列表 Do

type ServiceListInput

type ServiceListInput struct {
	Info     string // 关键词
	PageNo   int    // 页数
	PageSize int    // 每页条数
}

ServiceListInput 查询信息 Do

Jump to

Keyboard shortcuts

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