Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEntity ¶
type BaseEntity struct { ID string // the default PK UUID string CreatedAt int64 // timestamp UpdatedAt int64 // timestamp Owner string Creator string }
BaseEntity 是各个实体类的基本结构
type Permission ¶
type Permission struct { BaseEntity Name string // @pk AllowResource string // path of HTTP }
type Plan ¶
type Plan struct {
BaseEntity
}
type Repository ¶
type Repository struct { BaseEntity Name string Alias string // 用于网络访问 (必须是唯一的) Label string // 界面显示的名称 Description string Path string // the regular-path WantPath string // the want-path }
Repository 实体表示一个本地的Git仓库
type Role ¶
type Role struct { BaseEntity Name string // @pk, like 'admin' Permissions string // like 'p1,p2,p3...' (Permission Names) }
type Task ¶
type Task struct {
BaseEntity
}
Click to show internal directories.
Click to hide internal directories.