go-captiveportal/option.go

18 lines
322 B
Go

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),
}
}