natsio/subject/communication.go

16 lines
325 B
Go
Raw Permalink 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 {
2022-08-29 08:55:17 +00:00
RequestHTTP string
ResponseHTTP string
2022-08-26 08:56:36 +00:00
}{
2022-08-29 08:55:17 +00:00
RequestHTTP: getCommunicationValue("request_http"),
ResponseHTTP: getCommunicationValue("response_http"),
2022-08-26 08:56:36 +00:00
}