constant

package
v0.0.0-...-f944d32 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//DebugMode 调试模式
	DebugMode = gin.DebugMode
	//ReleaseMode 发布模式
	ReleaseMode = gin.ReleaseMode
	//TestMode 测试模式
	TestMode = gin.TestMode
)
View Source
const (
	//OwnerUsr 属于个人的项目
	OwnerUsr int = iota
	//OwnerOrg 属于组织的项目
	OwnerOrg
)
View Source
const (
	//ProjTypeGithub Github token引入的项目
	ProjTypeGithub int = iota
	//ProjTypeGitURL Git URL引入的公开项目
	ProjTypeGitURL
	//ProjTypePlain 普通项目
	ProjTypePlain
)
View Source
const (
	MaxProjInitRetry        = 5
	MinProjPullGap   uint16 = 5
	MinProjPushGap   uint16 = 5
)
View Source
const (
	//ProjStatCreated 项目已创建未初始化
	ProjStatCreated int = iota
	//ProjStatReady 项目已就绪
	ProjStatReady
	//ProjStatProcessing 项目正在处理string
	ProjStatProcessing
	//ProjStatFailed 项目初始化失败
	ProjStatFailed int = -1
)
View Source
const (
	//SyncStatSucc 上一次分支同步成功
	SyncStatSucc int = iota
	//SyncStatDoing 分支同步中
	SyncStatDoing
	//SyncStatFail 上一次分支同步失败
	SyncStatFail
)
View Source
const (
	//AuthGithubLogin github登录
	AuthGithubLogin = "login"
	//AuthGithubImport github引入仓库
	AuthGithubImport = "import"
)
View Source
const (
	//Delim 是数据库记录中的分隔符
	Delim = "|"
	//GithubTokenScopeDelim 是GitHub token作用域的分隔符
	GithubTokenScopeDelim = ","
)
View Source
const (
	SubjLogin            = "login"
	SubjRegister         = "register"
	SubjRefresh          = "refresh"
	SubjGithubLogin      = "github-login"
	SubjGithubFirstLogin = "github-first-login"
)
View Source
const (
	//ErrEmailOrPassIncorrect 邮箱或密码错误
	ErrEmailOrPassIncorrect = 1000 + iota
	//ErrEmailExists 邮箱已存在
	ErrEmailExists
	ErrGithubRepoUnauthorized
)

auth error

View Source
const (
	ErrProjUriExists = 2000 + iota
	ErrProjSrcLangEmpty
	ErrProjSrcLangIllegal
	ErrProjTrnLangIllegal
	ErrProjTypeIllegal
)
View Source
const (
	ErrGitChkout = 3000 + iota
	ErrGitCommit
)
View Source
const (
	//ErrGitUpToDate git already up-to-date
	ErrGitUpToDate = "already up-to-date"
)
View Source
const (
	ErrTokenExpired = 4000 + iota
)
View Source
const (
	ErrUnknown = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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