mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 01:08:59 -07:00
A few minor updates and attempts to clear up some lint / gosec warnings.
This commit is contained in:
parent
66970dcd25
commit
1a0455152a
10 changed files with 407 additions and 34 deletions
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue