summaryrefslogtreecommitdiff
path: root/src/rhctl/playout_server.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-24 22:11:26 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-24 22:11:26 (GMT)
commita547fe88a42d1e0aebfc01d5d90dd21fc101fc2e (patch)
tree91881f9753215f7f19740b16798cc5c73421c386 /src/rhctl/playout_server.go
parentc2ac2add756be8be1f74827bdc943636187e8bbf (diff)
some more marshaller
Diffstat (limited to 'src/rhctl/playout_server.go')
-rw-r--r--src/rhctl/playout_server.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rhctl/playout_server.go b/src/rhctl/playout_server.go
index 2aca202..cc5f6bf 100644
--- a/src/rhctl/playout_server.go
+++ b/src/rhctl/playout_server.go
@@ -46,6 +46,11 @@ func (s ServerHealth) String() string {
return "unknown"
}
+func (s ServerHealth) MarshalText() (data []byte, err error) {
+ data = []byte(s.String())
+ return
+}
+
type ServerState struct {
Name string
Health ServerHealth