A few minor updates and attempts to clear up some lint / gosec warnings.

This commit is contained in:
James Wells 2021-12-23 13:35:36 -08:00
parent 66970dcd25
commit 1a0455152a
Signed by: jwells
GPG key ID: 73196D10B8E65666
10 changed files with 407 additions and 34 deletions

View file

@ -22,6 +22,7 @@ import (
requests to a router. If started without arguments, the client
will contact the router and attempt to retrieve the results
of it's most recent request.
Main is the entrypoint for the client process
*/
func Main(wg *sync.WaitGroup, config gstructs.GagentConfig) {
log.Printf("[INFO] Starting client\n")

View file

@ -17,7 +17,7 @@ import (
var (
opsProcessed = promauto.NewCounter(prometheus.CounterOpts{
Name: "client_requests_recieved",
Name: "client_requests_received",
})
db gcdb.GagentDb
@ -29,6 +29,7 @@ var (
list of tags and passing the agent and it's storage to either a member
or client node. Tags are used by the agent to give hints as to where
it should be routed.
Main is the entrypoint for the router
*/
func Main(wg *sync.WaitGroup, config gstructs.GagentConfig) {
log.Printf("[INFO] Starting router\n")

View file

@ -11,6 +11,9 @@ import (
hclwrite "github.com/hashicorp/hcl/v2/hclwrite"
)
/*
Main is the entrypoint for the setup process
*/
func Main(wg *sync.WaitGroup, config gs.GagentConfig) {
log.Printf("[INFO] Starting setup\n")
defer wg.Done()

View file

@ -26,6 +26,7 @@ var (
anything about the network structure. Instead they know only to which
router(s) they are connected. The worker will execute the agent code and
pass the agent and it's results to a router.
Main is the entrypoint for the worker process
*/
func Main(wg *sync.WaitGroup, config gstructs.GagentConfig) {
log.Printf("[INFO] Starting worker\n")