nurse/protocols/http/validation.go
Peter Kurfer c52912c5aa
Some checks failed
agola/nurse/Test and lint The run failed
refactor: migrate to new Gitea URL
2022-09-22 11:46:36 +02:00

19 lines
375 B
Go

package http
import (
"net/http"
"code.icb4dc0.de/prskr/nurse/validation"
)
var registry = validation.NewRegistry[*http.Response]()
func init() {
registry.Register("jsonpath", func() validation.FromCall[*http.Response] {
return new(JSONPathValidator)
})
registry.Register("status", func() validation.FromCall[*http.Response] {
return new(StatusValidator)
})
}