21 lines
488 B
Go
21 lines
488 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/Teajey/rsvp"
|
|
|
|
lishwist "lishwist/core"
|
|
"lishwist/http/session"
|
|
)
|
|
|
|
type Private interface {
|
|
ServeHTTP(*lishwist.Session, *session.Session, http.Header, *http.Request) rsvp.Response
|
|
}
|
|
|
|
type PrivateFunc func(*lishwist.Session, *session.Session, http.Header, *http.Request) rsvp.Response
|
|
|
|
func (f PrivateFunc) ServeHTTP(app *lishwist.Session, s *session.Session, h http.Header, r *http.Request) rsvp.Response {
|
|
return f(app, s, h, r)
|
|
}
|