go-captiveportal/identifier.go

11 lines
148 B
Go

package captiveportal
import (
"net/http"
)
type Identifier interface {
Identify(r *http.Request) (string, error)
OnOffline(func(id string))
}