go-captiveportal/option.go

18 lines
322 B
Go
Raw Normal View History

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