diff options
Diffstat (limited to 'app_config.go')
-rw-r--r-- | app_config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app_config.go b/app_config.go index f9be6545..639ece85 100644 --- a/app_config.go +++ b/app_config.go @@ -35,3 +35,13 @@ type appConfig struct { SentryEnvironment string CustomHeaders []string } + +// GitlabServerURL returns URL to a GitLab instance. +func (config appConfig) GitlabServerURL() string { + return config.GitLabServer +} + +// GitlabClientSecret returns GitLab server access token. +func (config appConfig) GitlabAPISecret() []byte { + return config.GitLabAPISecretKey +} |