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;"` }
type Group ¶
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 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;"` }
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:创建时间"` }
Click to show internal directories.
Click to hide internal directories.