meta

package
v0.0.0-...-33f8601 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ID      int64
	Name    string
	User    string
	Email   string
	Token   string
	Comment string
	Ctime   string
	Mtime   string
}

Application 对应应用表.

type Interface

type Interface struct {
	ID      int64
	Name    string
	User    string
	Email   string
	State   bool
	Service Service `db_table:"one"`
	Path    string
	Method  server.Method
	Backend string
	Comment string
	Level   int8
	Ctime   string
	Mtime   string
}

Interface 接口信息

type MicroAPP

type MicroAPP struct {
	ServiceKey string
	Host       string
	Port       int
	PID        int
	GitHash    string
	GitTime    string
	GitMessage string
}

MicroAPP 一个函数式应用.

func NewMicroAPP

func NewMicroAPP(host string, port int, key string, pid int, hash, time, message string) *MicroAPP

NewMicroAPP 一个应用.

func (*MicroAPP) String

func (m *MicroAPP) String() string

func (*MicroAPP) Version

func (m *MicroAPP) Version() int64

Version 转换字符串类型的版本号为数值型.

type Relation

type Relation struct {
	ID               int64
	ApplicationID    int64  `db:"application_id"`
	ApplicationName  string `db:"application.name"`
	ApplicationUser  string `db:"application.user"`
	ApplicationEmail string `db:"application.email"`
	ServiceID        int64  `db:"service.id"`
	ServiceName      string `db:"service.name"`
	ServiceUser      string `db:"service.user"`
	ServiceEmail     string `db:"service.email"`
	InterfaceID      int64  `db:"interface.id"`
	InterfaceName    string `db:"interface.name"`
	Ctime            string
	Mtime            string
}

Relation 关联关系结构.

type Response

type Response struct {
	Status  int
	Message string      `json:",omitempty"`
	Data    interface{} `json:",omitempty"`
}

Response 通用返回结果

type Service

type Service struct {
	ID         int64   `json:"id" db_auto`
	RoleID     int64   `json:"role_id" `
	ResourceID int64   `json:"resource_id" `
	ClusterIDs []int64 `json:"cluster_ids" db_ignore`
	Name       string  `json:"name" valid:"Required"`
	User       string  `json:"user" `
	Validate   bool
	Email      string `json:"email" `
	Path       string `json:"path"  valid:"AlphaNumeric"`
	Source     string `json:"source" `
	Version    int    `json:"version" `
	Comment    string `json:"comment" valid:"Required"`
	CTime      string `json:"ctime" db:"ctime" db_default:"now()"`
	MTime      string `json:"mtime" db:"mtime" db_default:"now()"`
}

Service 微服务信息.

type TokenBody

type TokenBody struct {
	AppID      int64
	Name       string
	CreateTime int64
}

TokenBody token结构.

type Variable

type Variable struct {
	ID       int64
	Postion  server.VariablePostion
	Name     string
	Type     string
	Level    int
	Required bool
	Example  string
	Comment  string
	Ctime    string
	Mtime    string
}

Variable 接口参数

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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