Documentation ¶
Index ¶
- type Handler
- func (s *Handler) AdminHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) ApiContentsHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) ApproveContentHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) BuildContentHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) ConfigHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) ContentHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) ContentsHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) DeleteHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) DeleteUploadHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) DeployContentHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) EditHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) EditUploadHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) InitHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) LoginHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) LogoutHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) PreviewContentHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) SearchContentHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) SearchHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) StoreFiles(req *http.Request) (map[string]string, error)
- func (s *Handler) UploadContentsHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) UploadSearchHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) UserLoginHandler(res http.ResponseWriter, req *http.Request)
- func (s *Handler) UserRegisterHandler(res http.ResponseWriter, req *http.Request)
- type Response
- type ResponseErrView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(log loggers.Logger, db *database.Database, contentApp *contentEntity.Content, adminApp *adminEntity.Admin) *Handler
func (*Handler) AdminHandler ¶
func (s *Handler) AdminHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) ApiContentsHandler ¶
func (s *Handler) ApiContentsHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) ApproveContentHandler ¶
func (s *Handler) ApproveContentHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) BuildContentHandler ¶
func (s *Handler) BuildContentHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) ConfigHandler ¶
func (s *Handler) ConfigHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) ContentHandler ¶
func (s *Handler) ContentHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) ContentsHandler ¶
func (s *Handler) ContentsHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) DeleteHandler ¶
func (s *Handler) DeleteHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) DeleteUploadHandler ¶
func (s *Handler) DeleteUploadHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) DeployContentHandler ¶
func (s *Handler) DeployContentHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) EditHandler ¶
func (s *Handler) EditHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) EditUploadHandler ¶
func (s *Handler) EditUploadHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) InitHandler ¶
func (s *Handler) InitHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) LoginHandler ¶
func (s *Handler) LoginHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) LogoutHandler ¶
func (s *Handler) LogoutHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) PreviewContentHandler ¶ added in v0.0.5
func (s *Handler) PreviewContentHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) SearchContentHandler ¶
func (s *Handler) SearchContentHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) SearchHandler ¶
func (s *Handler) SearchHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) StoreFiles ¶
StoreFiles stores file uploads at paths like /YYYY/MM/filename.ext
func (*Handler) UploadContentsHandler ¶
func (s *Handler) UploadContentsHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) UploadSearchHandler ¶
func (s *Handler) UploadSearchHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) UserLoginHandler ¶
func (s *Handler) UserLoginHandler(res http.ResponseWriter, req *http.Request)
func (*Handler) UserRegisterHandler ¶
func (s *Handler) UserRegisterHandler(res http.ResponseWriter, req *http.Request)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func NewResponse(errView ResponseErrView) *Response
Click to show internal directories.
Click to hide internal directories.