diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-24 22:11:26 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-24 22:11:26 (GMT) |
commit | a547fe88a42d1e0aebfc01d5d90dd21fc101fc2e (patch) | |
tree | 91881f9753215f7f19740b16798cc5c73421c386 /src/rhctl/playout_server.go | |
parent | c2ac2add756be8be1f74827bdc943636187e8bbf (diff) |
some more marshaller
Diffstat (limited to 'src/rhctl/playout_server.go')
-rw-r--r-- | src/rhctl/playout_server.go | 5 |
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 |