create register agent in agent

This commit is contained in:
2026-04-13 16:37:54 +03:00
parent 8a3ffa98ab
commit 648c2d0a99
8 changed files with 154 additions and 6 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ type AgentConfig struct {
}
func NewConfig() (*AgentConfig, error) {
yamlFile, err := os.ReadFile("config.yaml")
yamlFile, err := os.ReadFile("agent.dev.yaml")
if err != nil {
return nil, fmt.Errorf("failed open file: %v", err)
}
@@ -41,7 +41,7 @@ func (c *AgentConfig) GetLogLevel() zerolog.Level {
}
func (c *AgentConfig) GetMode() string {
return "PROD"
return "DEV"
}
func (c *AgentConfig) GetGRPCAddress() string {