diff options
Diffstat (limited to 'problems.go')
| -rw-r--r-- | problems.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/problems.go b/problems.go index 12b2c44..f0c5ebb 100644 --- a/problems.go +++ b/problems.go @@ -1,7 +1,7 @@ // this defines the kinds of problems that can be detected package main -import ( +import ( "time" ) @@ -9,27 +9,27 @@ type ProblemType int type ActionType int type Problem struct { - kind ProblemType + kind ProblemType action ActionType - id int - Name string - desc string - value string - aaaa string - fixed bool + id int + Name string + desc string + value string + aaaa string + fixed bool duration time.Duration // how long until you should check to see if it's fixed - born time.Time // when first reported + born time.Time // when first reported - begun bool // weather or not fixing it has begun - begunTime time.Time // when the attempt to fix the problem happened - begunResult bool // weather or not the attempt worked + begun bool // weather or not fixing it has begun + begunTime time.Time // when the attempt to fix the problem happened + begunResult bool // weather or not the attempt worked } -var IPcreate = Problem { - kind: RR, +var IPcreate = Problem{ + kind: RR, action: CREATE, - desc: "This RR entry in the zonefile needs to be removed", + desc: "This RR entry in the zonefile needs to be removed", } /* |
