boltshared

module
v0.0.0-...-725c2af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2019 License: MPL-2.0

README

boltshared

Packages for the BOLT engine which are shared with other projects.

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 } } } }}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL