mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-26 00:09:11 +00:00
19 lines
301 B
Go
19 lines
301 B
Go
package xair
|
|
|
|
import "time"
|
|
|
|
type Option func(*engine)
|
|
|
|
func WithKind(kind string) Option {
|
|
return func(e *engine) {
|
|
e.Kind = MixerKind(kind)
|
|
e.addressMap = addressMapForMixerKind(e.Kind)
|
|
}
|
|
}
|
|
|
|
func WithTimeout(timeout time.Duration) Option {
|
|
return func(e *engine) {
|
|
e.timeout = timeout
|
|
}
|
|
}
|