Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(nh EvaluationHandler) http.Handler
NewRouter is a construction function for router that handles evaluation operations.
Types ¶
type EvaluationHandler ¶
type EvaluationHandler interface { Evaluate() func(w http.ResponseWriter, r *http.Request) Validate() func(w http.ResponseWriter, r *http.Request) Errors() func(w http.ResponseWriter, r *http.Request) }
EvaluationHandler is a contract to a notification handler.
type Logger ¶
type Logger interface { Info(args ...interface{}) Infof(template string, args ...interface{}) Fatalf(template string, args ...interface{}) }
Logger is a contract to a logger implementation.
Click to show internal directories.
Click to hide internal directories.