Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
a1095b75
Commit
a1095b75
authored
Jan 23, 2018
by
antony360
Committed by
Sander van Harmelen
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated settings structure (#304)
* updated Settings and UpdateSettingsOptions
parent
244bba52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
settings.go
settings.go
+4
-2
No files found.
settings.go
View file @
a1095b75
...
@@ -86,7 +86,8 @@ type Settings struct {
...
@@ -86,7 +86,8 @@ type Settings struct {
MetricsPort
int
`json:"metrics_port"`
MetricsPort
int
`json:"metrics_port"`
MetricsSampleInterval
int
`json:"metrics_sample_interval"`
MetricsSampleInterval
int
`json:"metrics_sample_interval"`
MetricsTimeout
int
`json:"metrics_timeout"`
MetricsTimeout
int
`json:"metrics_timeout"`
PasswordAuthenticationEnabled
bool
`json:"password_authentication_enabled"`
PasswordAuthenticationEnabledForWeb
bool
`json:"password_authentication_enabled_for_web"`
PasswordAuthenticationEnabledForGit
bool
`json:"password_authentication_enabled_for_git"`
PerformanceBarAllowedGroupId
string
`json:"performance_bar_allowed_group_id"`
PerformanceBarAllowedGroupId
string
`json:"performance_bar_allowed_group_id"`
PerformanceBarEnabled
bool
`json:"performance_bar_enabled"`
PerformanceBarEnabled
bool
`json:"performance_bar_enabled"`
PlantumlEnabled
bool
`json:"plantuml_enabled"`
PlantumlEnabled
bool
`json:"plantuml_enabled"`
...
@@ -205,7 +206,8 @@ type UpdateSettingsOptions struct {
...
@@ -205,7 +206,8 @@ type UpdateSettingsOptions struct {
MetricsPort
*
int
`url:"metrics_port,omitempty" json:"metrics_port,omitempty"`
MetricsPort
*
int
`url:"metrics_port,omitempty" json:"metrics_port,omitempty"`
MetricsSampleInterval
*
int
`url:"metrics_sample_interval,omitempty" json:"metrics_sample_interval,omitempty"`
MetricsSampleInterval
*
int
`url:"metrics_sample_interval,omitempty" json:"metrics_sample_interval,omitempty"`
MetricsTimeout
*
int
`url:"metrics_timeout,omitempty" json:"metrics_timeout,omitempty"`
MetricsTimeout
*
int
`url:"metrics_timeout,omitempty" json:"metrics_timeout,omitempty"`
PasswordAuthenticationEnabled
*
bool
`url:"password_authentication_enabled,omitempty" json:"password_authentication_enabled,omitempty"`
PasswordAuthenticationEnabledForWeb
*
bool
`url:"password_authentication_enabled_for_web,omitempty" json:"password_authentication_enabled_for_web,omitempty"`
PasswordAuthenticationEnabledForGit
*
bool
`url:"password_authentication_enabled_for_git,omitempty" json:"password_authentication_enabled_for_git,omitempty"`
PerformanceBarAllowedGroupId
*
string
`url:"performance_bar_allowed_group_id,omitempty" json:"performance_bar_allowed_group_id,omitempty"`
PerformanceBarAllowedGroupId
*
string
`url:"performance_bar_allowed_group_id,omitempty" json:"performance_bar_allowed_group_id,omitempty"`
PerformanceBarEnabled
*
bool
`url:"performance_bar_enabled,omitempty" json:"performance_bar_enabled,omitempty"`
PerformanceBarEnabled
*
bool
`url:"performance_bar_enabled,omitempty" json:"performance_bar_enabled,omitempty"`
PlantumlEnabled
*
bool
`url:"plantuml_enabled,omitempty" json:"plantuml_enabled,omitempty"`
PlantumlEnabled
*
bool
`url:"plantuml_enabled,omitempty" json:"plantuml_enabled,omitempty"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment