21 lines
763 B
Go
21 lines
763 B
Go
package config
|
|
|
|
type NatsConfig struct {
|
|
Url string `ini:"url" yaml:"url"`
|
|
User string `ini:"user" yaml:"user"`
|
|
Password string `ini:"password" yaml:"password"`
|
|
|
|
//ToAgentUnicastSubject string `ini:"to_agent_unicast_subject" yaml:"to_agent_unicast_subject"`
|
|
//ToAgentBroadcastSubject string `ini:"to_agent_broadcast_subject" yaml:"to_agent_broadcast_subject"`
|
|
//ToScheduleSubject string `ini:"to_schedule_subject" yaml:"to_schedule_subject"`
|
|
}
|
|
|
|
var Nats = NatsConfig{
|
|
Url: "nats://192.168.12.110:30529",
|
|
User: "admin",
|
|
Password: "T0pS3cr3tFGThjjds56",
|
|
//ToAgentUnicastSubject: "cfn_to_agent_unicast_{rid}",
|
|
//ToAgentBroadcastSubject: "cfn_to_agent_broadcast",
|
|
//ToScheduleSubject: "cfn_to_schedulecfn_to_schedule",
|
|
}
|