2020-10-16 17:27:44 +02:00
|
|
|
package captiveportal
|
|
|
|
|
|
|
|
type Options struct {
|
2020-10-18 15:28:34 +02:00
|
|
|
Matcher Matcher
|
|
|
|
Liar Liar
|
2020-10-16 17:27:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type OptionsFunc func(*Options)
|
|
|
|
|
|
|
|
func DefaultOptions() *Options {
|
|
|
|
return &Options{
|
2020-10-18 15:28:34 +02:00
|
|
|
Matcher: MatchFunc(DefaultMatch),
|
|
|
|
Liar: LiarFunc(DefaultLiar),
|
2020-10-16 17:27:44 +02:00
|
|
|
}
|
|
|
|
}
|