summaryrefslogtreecommitdiff
path: root/plugins/broadcast/ws/config.go
blob: 1d4132b463403f75315497d73e033d8bc307328e (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
package ws

/*
broadcast:
  ws-us-region-1:
    subscriber: ws
    path: "/ws"

    driver: redis
    address:
      - 6379
    db: 0
*/

// Config represents configuration for the ws plugin
type Config struct {
	// http path for the websocket
	Path string `mapstructure:"Path"`
}

// InitDefault initialize default values for the ws config
func (c *Config) InitDefault() {
	if c.Path == "" {
		c.Path = "/ws"
	}
}