mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-12-24 12:27:57 +08:00
14 lines
212 B
Go
14 lines
212 B
Go
package streamforward
|
|
|
|
type Option interface {
|
|
apply(*ActiveStreamForwarding)
|
|
}
|
|
|
|
type Options []Option
|
|
|
|
func (opts Options) apply(cfg *ActiveStreamForwarding) {
|
|
for _, opt := range opts {
|
|
opt.apply(cfg)
|
|
}
|
|
}
|