Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(nh NotificationHandler) http.Handler
NewRouter is a construction function for router that handles operations for notifications.
Types ¶
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.
type NotificationHandler ¶
type NotificationHandler interface {
Notify(method, path string) func(w http.ResponseWriter, r *http.Request)
}
NotificationHandler is a contract to a notification handler.
Click to show internal directories.
Click to hide internal directories.