mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 20:27:46 +08:00
f1dd2384ed
fix bug that Ingress was unable to remove all when the component was closed;
16 lines
267 B
Go
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,
|
|
}
|
|
}
|