Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addr string Debug bool Host string FacebookClientID string FacebookClientSecret string GoogleClientID string GoogleClientSecret string MediaDir string SecretKey string SiteTheme string SiteTitle string SiteDescription string Conn *db.Conn Matcher *matcher.Matcher }
Config stores the configuration for the embedded web server.
type Recorder ¶
type Recorder struct { http.ResponseWriter StartTime time.Time StatusCode int }
Recorder is an implementation of ResponseWriter that remembers the status code that was set so that it can be accessed.
func NewRecorder ¶
func NewRecorder(w http.ResponseWriter) *Recorder
NewRecorder creates and initializes a new recorder.
func (*Recorder) WriteHeader ¶
WriteHeader invokes the ResponseWriter implementation and stores the status code.
Click to show internal directories.
Click to hide internal directories.