Add web session management

This commit is contained in:
Matt Baer
2018-10-16 20:30:38 -04:00
parent af601d7b0c
commit 62abc11142
5 changed files with 196 additions and 1 deletions

11
errors.go Normal file
View File

@@ -0,0 +1,11 @@
package writefreely
import (
"github.com/writeas/impart"
"net/http"
)
// Commonly returned HTTP errors
var (
ErrInternalCookieSession = impart.HTTPError{http.StatusInternalServerError, "Could not get cookie session."}
)