natsio/subject/communication.go

20 lines
521 B
Go
Raw Normal View History

2022-08-18 10:47:47 +00:00
package subject
2022-08-26 08:56:36 +00:00
import "fmt"
2022-08-18 10:47:47 +00:00
2022-08-26 08:56:36 +00:00
func getCommunicationValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Communication, val)
}
var Communication = struct {
RequestHTTP string
ResponseHTTP string
WebhookTNC string
WebhookGlobalCare string
}{
RequestHTTP: getCommunicationValue("request_http"),
ResponseHTTP: getCommunicationValue("response_http"),
WebhookTNC: getCommunicationValue("webhook_tnc"),
WebhookGlobalCare: getCommunicationValue("webhook_global_care"),
}