summaryrefslogtreecommitdiff
path: root/plugins/broadcast/config.go
blob: 9531025bc6d6b22a07357375f8a6b900bbd9d140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package broadcast

/*

# Global redis config (priority - 2)
default:
   # redis configuration here

websockets: # <----- one of possible subscribers
  path: /ws
  broker: default # <------ broadcast broker to use --------------- |
                                                                    |  match
broadcast: # <-------- broadcast entry point plugin                 |
  default: # <----------------------------------------------------- |
     driver: redis
     # local redis config (priority - 1)
  test:
     driver: memory


priority local -> global
*/

// Config ...
type Config struct {
	Data map[string]interface{} `mapstructure:"broadcast"`
}