Directories
¶
Path | Synopsis |
---|---|
Package config provides the default configuration for the Bolt engine.
|
Package config provides the default configuration for the Bolt engine. |
Package database provides functions for querying databases.
|
Package database provides functions for querying databases. |
Package mqwrapper provides functions to create and utilize the MQ system as the BOLT engine requires.
|
Package mqwrapper provides functions to create and utilize the MQ system as the BOLT engine requires. |
Package security provides functions for group authentication and HMAC encryption/decryption
|
Package security provides functions for group authentication and HMAC encryption/decryption |
Package stats provides a tool to collect and track statistics Example usage: c := NewStatCollector("myapp") c.Child("performance").Child("net-latency").Value(200) c.Ch("performance").Ch("iops").V(100) c.Ch("hits") //defaults to int(0) c.Ch("hits").Incr() // add 1 hit fmt.Println(c.JSON()) Outputs {"init": "2015-10-05T13:01:42.722509063-04:00", "changed": "0001-01-01T00:00:00Z", "value": 0, "children": { "hits": { "init": "2015-10-05T13:01:42.722511672-04:00", "changed": "0001-01-01T00:00:00Z", "value": 1 }, "performance": { "init": "2015-10-05T13:01:42.72250972-04:00", "changed": "0001-01-01T00:00:00Z", "value": 0, "children": { "iops": { "init": "2015-10-05T13:01:42.722511208-04:00", "changed": "2015-10-05T13:01:42.722511477-04:00", "value": 100 }, "net-latency": { "init": "2015-10-05T13:01:42.7225103-04:00", "changed": "2015-10-05T13:01:42.722510848-04:00", "value": 200 } } } }}
|
Package stats provides a tool to collect and track statistics Example usage: c := NewStatCollector("myapp") c.Child("performance").Child("net-latency").Value(200) c.Ch("performance").Ch("iops").V(100) c.Ch("hits") //defaults to int(0) c.Ch("hits").Incr() // add 1 hit fmt.Println(c.JSON()) Outputs {"init": "2015-10-05T13:01:42.722509063-04:00", "changed": "0001-01-01T00:00:00Z", "value": 0, "children": { "hits": { "init": "2015-10-05T13:01:42.722511672-04:00", "changed": "0001-01-01T00:00:00Z", "value": 1 }, "performance": { "init": "2015-10-05T13:01:42.72250972-04:00", "changed": "0001-01-01T00:00:00Z", "value": 0, "children": { "iops": { "init": "2015-10-05T13:01:42.722511208-04:00", "changed": "2015-10-05T13:01:42.722511477-04:00", "value": 100 }, "net-latency": { "init": "2015-10-05T13:01:42.7225103-04:00", "changed": "2015-10-05T13:01:42.722510848-04:00", "value": 200 } } } }} |
Click to show internal directories.
Click to hide internal directories.