Rainbond/gateway/controller/openresty/model/stream.go
barnettZQG f1dd2384ed support dynamically update tcp or udp upstream;
fix bug that Ingress was unable to remove all when the component was closed;
2020-02-03 23:18:37 +08:00

16 lines
267 B
Go

package model
import "github.com/goodrain/rainbond/cmd/gateway/option"
// Stream -
type Stream struct {
StreamPort int
}
// NewStream creates a new stream.
func NewStream(conf *option.Config) *Stream {
return &Stream{
StreamPort: conf.ListenPorts.Stream,
}
}