Refactor probe.Result enumeration

pull/6/head
Tamer Tas 2015-08-01 22:01:51 +03:00 committed by Tamer Tas
parent 72db123025
commit be7c223043
1 changed files with 4 additions and 16 deletions

View File

@ -16,22 +16,10 @@ limitations under the License.
package probe
type Result int
type Result string
// Status values must be one of these constants.
const (
Success Result = iota
Failure
Unknown
Success Result = "success"
Failure Result = "failure"
Unknown Result = "unknown"
)
func (s Result) String() string {
switch s {
case Success:
return "success"
case Failure:
return "failure"
default:
return "unknown"
}
}