-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor ServiceStatus struct to common package
- Loading branch information
1 parent
26c56db
commit 49f5db3
Showing
7 changed files
with
32 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package common | ||
|
||
import "time" | ||
|
||
// KeyValue key value definition | ||
type KeyValue struct { | ||
Key string `json:"k"` | ||
Value string `json:"v"` | ||
} | ||
|
||
// ServiceStatus service status definition | ||
type ServiceStatus struct { | ||
Variant string `json:"variant,omitempty"` | ||
Version string `json:"version,omitempty"` | ||
APIVersion string `json:"api_version,omitempty"` | ||
Status string `json:"status,omitempty"` | ||
StatusMessage string `json:"status_message,omitempty"` | ||
ApplicationID string `json:"app_id,omitempty"` | ||
ServerMode string `json:"server-mode,omitempty"` | ||
StatusDetails []KeyValue `json:"status_details,omitempty"` | ||
StartTime time.Time `json:"start_time,omitempty"` | ||
} |