Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Bk Bcs
Commits
870ba8c7
Unverified
Commit
870ba8c7
authored
6 years ago
by
Lwxiang
Browse files
Options
Download
Email Patches
Plain Diff
style: fix go vet issues in health, issue #70
parent
ea157156
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bcs-services/bcs-health/doc/README.md
+5
-5
bcs-services/bcs-health/doc/README.md
bcs-services/bcs-health/pkg/healthz/type.go
+1
-1
bcs-services/bcs-health/pkg/healthz/type.go
bcs-services/bcs-health/util/type.go
+6
-6
bcs-services/bcs-health/util/type.go
with
12 additions
and
12 deletions
+12
-12
bcs-services/bcs-health/doc/README.md
+
5
-
5
View file @
870ba8c7
...
...
@@ -69,18 +69,18 @@ type Job struct {
// url of the checked point, ip:port
Url
string
`json:"url"`
// the result of this job.
Status
*
JobStatus
`json:"status,
omitempty"`
Status
*
JobStatus
`json:"status,omitempty"`
}
type
JobStatus
struct
{
// slave infos that do this job
SlaveInfo
*
Slave
`json:"slaveInfo,
omitempty"`
SlaveInfo
*
Slave
`json:"slaveInfo,omitempty"`
// where the job is success or not.
Success
bool
`json:"success,
omitempty"`
Success
bool
`json:"success,omitempty"`
// record the check result when failed.
Message
string
`json:"message,
omitempty"`
Message
string
`json:"message,omitempty"`
// time of the job is done.
FinishedAt
int64
`json:"finishedAt,
omitempty"`
FinishedAt
int64
`json:"finishedAt,omitempty"`
}
// health slave's meta info
...
...
This diff is collapsed.
Click to expand it.
bcs-services/bcs-health/pkg/healthz/type.go
+
1
-
1
View file @
870ba8c7
...
...
@@ -47,7 +47,7 @@ type ClusterStatus struct {
type
HealthResult
struct
{
Status
HealthStatus
`json:"status"`
Message
MsgDetail
`json:"message,
omitempty"`
Message
MsgDetail
`json:"message,omitempty"`
}
type
MsgDetail
[]
string
...
...
This diff is collapsed.
Click to expand it.
bcs-services/bcs-health/util/type.go
+
6
-
6
View file @
870ba8c7
...
...
@@ -100,7 +100,7 @@ type Job struct {
// url of the checked point, ip:port
Url
string
`json:"url"`
// the result of this job.
Status
*
JobStatus
`json:"status,
omitempty"`
Status
*
JobStatus
`json:"status,omitempty"`
}
func
(
j
*
Job
)
Name
()
string
{
...
...
@@ -135,16 +135,16 @@ func (j *Job) DeepCopy() *Job {
type
JobStatus
struct
{
// slave infos that do this job
SlaveInfo
*
Slave
`json:"slaveInfo,
omitempty"`
SlaveInfo
*
Slave
`json:"slaveInfo,omitempty"`
// where the job is success or not.
Success
bool
`json:"success,
omitempty"`
Success
bool
`json:"success,omitempty"`
// record the check result when failed.
Message
string
`json:"message,
omitempty"`
Message
string
`json:"message,omitempty"`
// time of the job is done.
FinishedAt
int64
`json:"finishedAt,
omitempty"`
FinishedAt
int64
`json:"finishedAt,omitempty"`
}
type
SvrResponse
struct
{
Error
error
`json:"error"`
Jobs
[]
*
Job
`json:"jobs,
omitempty"`
Jobs
[]
*
Job
`json:"jobs,omitempty"`
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help