mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-10 18:48:44 +00:00
18 lines
380 B
Go
18 lines
380 B
Go
// Package checker defines the Checker interface and a helper utility to avoid import cycles.
|
|
package checker
|
|
|
|
import (
|
|
"errors"
|
|
"net/http"
|
|
)
|
|
|
|
var (
|
|
ErrUnparseableConfig = errors.New("checker: config is unparseable")
|
|
ErrInvalidConfig = errors.New("checker: config is invalid")
|
|
)
|
|
|
|
type Interface interface {
|
|
Check(*http.Request) (matches bool, err error)
|
|
Hash() string
|
|
}
|