diff options
author | Valery Piashchynski <[email protected]> | 2021-05-03 22:52:30 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-05-03 22:52:30 +0300 |
commit | 9ee78f937d5be67058882dd3590f89da35bca239 (patch) | |
tree | 17cda27feabf5f2b8afc6a2796117835045afd36 /plugins/broadcast/websockets/config.go | |
parent | 009b7009885d8a15e6fa6c7e78436087b2f20129 (diff) |
- Initial broadcast commit
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/broadcast/websockets/config.go')
-rw-r--r-- | plugins/broadcast/websockets/config.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/broadcast/websockets/config.go b/plugins/broadcast/websockets/config.go new file mode 100644 index 00000000..8a71c7af --- /dev/null +++ b/plugins/broadcast/websockets/config.go @@ -0,0 +1,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 +//} |