20 lines
393 B
Go
20 lines
393 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/Teajey/rsvp"
|
|
|
|
"lishwist/http/session"
|
|
)
|
|
|
|
type Public interface {
|
|
ServeHTTP(*session.Session, http.Header, *http.Request) rsvp.Response
|
|
}
|
|
|
|
type PublicFunc func(*session.Session, http.Header, *http.Request) rsvp.Response
|
|
|
|
func (f PublicFunc) ServeHTTP(s *session.Session, h http.Header, r *http.Request) rsvp.Response {
|
|
return f(s, h, r)
|
|
}
|