blob: 5e7b7f2076b25cacf43dc8a49981d9b68bec99c4 (
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
28
29
|
package broadcast
/*
broadcast:
ws-us-region-1:
subscriber: websockets
middleware: ["headers", "gzip"] # ????
address: "localhost:53223"
path: "/ws"
storage: redis
address:
- 6379
db: 0
*/
// Config represents configuration for the ws plugin
type Config struct {
// Sections represent particular broadcast plugin section
Sections map[string]interface{} `mapstructure:"sections"`
}
func (c *Config) InitDefaults() {
}
func (c *Config) Valid() error {
return nil
}
|