Documentation ¶
Index ¶
- func Debug() bool
- func DiceCluster() string
- func DiceProtocol() string
- func EventBoxAddr() string
- func GitDiffContextLines() int
- func GitGCCronExpression() string
- func GitGCMaxNum() int
- func GitMaxDiffFiles() int
- func GitMaxDiffLineCharacters() int
- func GitMaxDiffLines() int
- func GitMaxDiffSize() int
- func GitMergeTemplatePath() string
- func GitRepoTreeSearchDepth() int64
- func GitTokenUserName() string
- func GittarUrl() string
- func ListenPort() string
- func Load()
- func MergePathTemplate() string
- func MetricTargetBranches() []string
- func OryCompatibleClientID() string
- func OryCompatibleClientSecret() string
- func OryEnabled() bool
- func OryKratosAddr() string
- func OryKratosPrivateAddr() string
- func PersonalContributionOrgIDWhiteList() []uint64
- func RefreshPersonalContributorDuration() time.Duration
- func RepoPathTemplate() string
- func RepoRoot() string
- func SkipAuthUrls() []string
- func UCAddr() string
- func UCClientID() string
- func UCClientSecret() string
- func UIPublicURL() string
- type Conf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiceCluster ¶
func DiceCluster() string
func DiceProtocol ¶
func DiceProtocol() string
func GitMaxDiffLineCharacters ¶
func GitMaxDiffLineCharacters() int
GitMaxDiffLineCharacters 单行diff最大字符串
func GitRepoTreeSearchDepth ¶
func GitRepoTreeSearchDepth() int64
func MetricTargetBranches ¶
func MetricTargetBranches() []string
func OryCompatibleClientID ¶
func OryCompatibleClientID() string
func OryCompatibleClientSecret ¶
func OryCompatibleClientSecret() string
func OryEnabled ¶
func OryEnabled() bool
func OryKratosAddr ¶
func OryKratosAddr() string
func OryKratosPrivateAddr ¶
func OryKratosPrivateAddr() string
func PersonalContributionOrgIDWhiteList ¶
func PersonalContributionOrgIDWhiteList() []uint64
func RepoPathTemplate ¶
func RepoPathTemplate() string
RepoPathTemplate 在线代码仓库path模板,用于从git url直接跳转到dice ui url
Types ¶
type Conf ¶
type Conf struct { RepoRoot string `env:"GITTAR_REPOSITORY_ROOT" default:"/repository"` SelfAddr string `env:"SELF_ADDR"` SkipAuthUrlsStr string `env:"GITTAR_SKIP_AUTH_URL"` SkipAuthUrls []string ListenPort string `env:"GITTAR_PORT" default:"5566"` Debug bool `env:"DEBUG" default:"false"` DiceProtocol string `env:"DICE_PROTOCOL"` UCAddr string `env:"UC_ADDR"` UCClientID string `env:"UC_CLIENT_ID"` UCClientSecret string `env:"UC_CLIENT_SECRET"` UIPublicURL string `env:"UI_PUBLIC_URL"` RepoPathTemplate string `env:"REPO_PATH_TEMPLATE" default:"/workBench/projects/{{projectId}}/apps/{{appId}}/repo"` MergePathTemplate string `env:"MERGE_PATH_TEMPLATE" default:"/workBench/projects/{{projectId}}/apps/{{appId}}/repo/mr/open/{{mrId}}"` EventBoxAddr string `env:"EVENTBOX_ADDR"` // git config GitMaxDiffLines int `env:"GIT_MAX_DIFF_LINES" default:"200"` GitMaxDiffLineCharacters int `env:"GIT_MAX_DIFF_LINE_CHARACTERS" default:"10000"` GitMaxDiffFiles int `env:"GIT_DIFF_FILES" default:"300"` GitMaxDiffSize int `env:"GIT_MAX_DIFF_SIZE" default:"256000"` GitDiffContextLines int `env:"GIT_DIFF_CONTEXT_LINES" default:"3"` GitMergeTemplatePath string `env:"GIT_MERGE_TEMPLATE_PATH" default:".gitlab/merge_request_templates"` GitTokenUserName string `env:"GIT_TOKEN_USER_NAME" default:"git"` GitGCMaxNum int `env:"GIT_GC_MAX_NUM" default:"1"` GitGCCronExpression string `env:"GIT_GC_CRON_EXPRESSION" default:"0 0 1 * * ?"` // ory/kratos config OryEnabled bool `default:"false" env:"ORY_ENABLED"` OryKratosAddr string `default:"kratos-public" env:"ORY_KRATOS_ADDR"` OryKratosPrivateAddr string `default:"kratos-admin" env:"ORY_KRATOS_ADMIN_ADDR"` GitRepoTreeSearchDepth int64 `default:"5" env:"GIT_REPO_TREE_SEARCH_DEPTH"` // metrics RefreshPersonalContributorDuration time.Duration `default:"12h" env:"REFRESH_PERSONAL_CONTRIBUTOR_DURATION"` PersonalContributionOrgIDWhiteList []uint64 `env:"PERSONAL_CONTRIBUTION_ORG_ID_WHITE_LIST"` MetricTargetBranches []string `env:"METRIC_TARGET_BRANCHES" default:"[\"master\",\"main\",\"dev\",\"develop\",\"release\",\"feature/develop\"]"` // AI AIProxyURL string `env:"AI_PROXY_URL"` AIProxyClientAK string `env:"AI_PROXY_CLIENT_AK"` }
Conf 定义配置对象.
Click to show internal directories.
Click to hide internal directories.