2018-11-08 17:22:26 +08:00
|
|
|
package model
|
|
|
|
|
2020-02-03 23:18:37 +08:00
|
|
|
import "github.com/goodrain/rainbond/cmd/gateway/option"
|
|
|
|
|
2019-03-10 18:51:10 +08:00
|
|
|
// Stream -
|
2018-11-08 17:22:26 +08:00
|
|
|
type Stream struct {
|
2020-02-03 23:18:37 +08:00
|
|
|
StreamPort int
|
2018-11-08 17:22:26 +08:00
|
|
|
}
|
|
|
|
|
2019-03-10 18:51:10 +08:00
|
|
|
// NewStream creates a new stream.
|
2020-02-03 23:18:37 +08:00
|
|
|
func NewStream(conf *option.Config) *Stream {
|
2018-11-08 17:22:26 +08:00
|
|
|
return &Stream{
|
2020-02-03 23:18:37 +08:00
|
|
|
StreamPort: conf.ListenPorts.Stream,
|
2018-11-08 17:22:26 +08:00
|
|
|
}
|
|
|
|
}
|