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