server

package
v1.3.3-beta Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Id   int64  `gorm:"type:BIGINT(20);size:20;not null;auto_increment;primary_key;column:id;comment:主键ID;"`
	Suid string `gorm:"size:36;not null;column:suid;uniqueIndex:suid_api;index:suid;comment:服务id;"`
	Api  string `gorm:"size:36;not null;column:api;uniqueIndex:sid_api;comment:api id;index:api;"`
}

func (*Api) IdValue

func (a *Api) IdValue() int64

func (*Api) TableName

func (a *Api) TableName() string

type Group

type Group struct {
	Id    int64  `gorm:"column:id;type:BIGINT(20);NOT NULL;comment:id;primary_key;comment:主键ID;"`
	Group string `gorm:"size:36;not null;column:group;comment:组id"`
}

func (*Group) IdValue

func (g *Group) IdValue() int64

func (*Group) TableName

func (g *Group) TableName() string

type IServerApiStore

type IServerApiStore interface {
	store.IBaseStore[Api]
}

type IServerCommit

type IServerCommit interface {
	commit.ICommitWKStore[ServerCommit]
}

type IServerStore

type IServerStore interface {
	store.ISearchStore[Server]
}

type IServicePartitionStore

type IServicePartitionStore interface {
	store.IBaseStore[Partition]
}

type Online

type Online struct {
	Id  int64  `gorm:"type:BIGINT(20);size:20;not null;auto_increment;primary_key;column:id;comment:主键ID;"`
	Sid string `gorm:"size:36;not null;column:sid;uniqueIndex:sid;comment:服务id;uniqueIndex:sid;"`
}

func (*Online) IdValue

func (o *Online) IdValue() int64

func (*Online) TableName

func (o *Online) TableName() string

type Partition

type Partition struct {
	Id  int64  `gorm:"type:BIGINT(20);size:20;not null;auto_increment;primary_key;column:id;comment:主键ID;"`
	Sid string `gorm:"size:36;not null;column:sid;comment:服务id;uniqueIndex:sid_pid; index:sid;"`
	Pid string `gorm:"size:36;not null;column:pid;comment:分区id;uniqueIndex:sid_pid;index:pid;"`
}

func (*Partition) IdValue

func (p *Partition) IdValue() int64

func (*Partition) TableName

func (p *Partition) TableName() string

type Server

type Server struct {
	Id   int64  `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
	UUID string `gorm:"type:varchar(36);not null;column:uuid;uniqueIndex:uuid;comment:UUID;"`
	Name string `gorm:"type:varchar(100);not null;column:name;comment:name"`

	Project  string    `gorm:"size:36;not null;column:project;comment:项目名称"`
	Team     string    `gorm:"size:36;not null;column:team;comment:团队id"`
	Group    string    `gorm:"size:36;not null;column:group;comment:组id"`
	Delete   string    `gorm:"size:36;not null;column:delete;comment:是否删除 0:未删除 1:已删除"`
	Creator  string    `gorm:"size:36;not null;column:creator;comment:创建人;index:creator"` // 创建人
	CreateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"`
}

func (*Server) IdValue

func (s *Server) IdValue() int64

func (*Server) TableName

func (s *Server) TableName() string

type ServerCommit

type ServerCommit struct {
	Description string `json:"description,omitempty"`
	Group       string `json:"group,omitempty"`
	GroupName   string `json:"groupName,omitempty"`
	Online      bool   `json:"online,omitempty"`
}

Jump to

Keyboard shortcuts

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