Rainbond/gateway/controller/openresty/model/stream.go

16 lines
267 B
Go
Raw Normal View History

2018-11-08 17:22:26 +08:00
package model
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 {
StreamPort int
2018-11-08 17:22:26 +08:00
}
2019-03-10 18:51:10 +08:00
// NewStream creates a new stream.
func NewStream(conf *option.Config) *Stream {
2018-11-08 17:22:26 +08:00
return &Stream{
StreamPort: conf.ListenPorts.Stream,
2018-11-08 17:22:26 +08:00
}
}