summaryrefslogtreecommitdiff
path: root/plugins/broadcast/websockets/config.go
blob: 8a71c7af896a24452fb7c65588e77ce63e4e79aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package websockets


// Config defines the websocket service configuration.
type Config struct {
	// Path defines on this URL the middleware must be activated. Same path must
	// be handled by underlying application kernel to authorize the consumption.
	Path string

	// NoOrigin disables origin check, only for debug.
	NoOrigin bool
}

// Hydrate reads the configuration values from the source configuration.
//func (c *Config) Hydrate(cfg service.Config) error {
//	if err := cfg.Unmarshal(c); err != nil {
//		return err
//	}
//
//	return nil
//}