natsio/subject/socket.go

17 lines
314 B
Go
Raw Permalink Normal View History

2023-03-23 03:34:58 +00:00
package subject
import "fmt"
func getSocketValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Socket, val)
}
// Socket ...
var Socket = struct {
EmitEventReward string
2023-03-27 08:44:39 +00:00
EmitEventToUser string
2023-03-23 03:34:58 +00:00
}{
EmitEventReward: getSocketValue("emit_event_reward"),
2023-03-27 08:44:39 +00:00
EmitEventToUser: "send_message_to_socket",
2023-03-23 03:34:58 +00:00
}