Skip to content

Commit 2d67719

Browse files
committed
Add some comments
1 parent e561fb4 commit 2d67719

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ import (
2020
var version string
2121
var printVersion bool
2222

23+
// Amazon S3 Provider
2324
const PROVIDER_S3 = "s3"
25+
// Google Cloud Storage Provider
2426
const PROVIDER_GS = "gs"
27+
// Protocol for the bucket URLs - Amazon S3
2528
const PROTO_S3 = "s3"
29+
// Protocol for the bucket URLs - Google Cloud Storage
2630
const PROTO_GS = "gs"
2731

2832
func main() {

types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ type ReturnCode int
77
// Possible ReturnCode values for a nagios/icinga/sensu check
88
// 0 is OK, 1 is WARNING, 2 is CRITICAL, 3 is UNKNOWN
99
const (
10+
// OK is value 0 - which means OK
1011
OK ReturnCode = 0 + iota
12+
// WARNING is value 1 - which is a WARNING
1113
WARNING
14+
// CRITICAL is value 2 - which is a CRITICAL
1215
CRITICAL
16+
// UNKNOWN is value 3 - which is UNKNOWN
1317
UNKNOWN
1418
)

0 commit comments

Comments
 (0)