Documentation ¶
Index ¶
- func Localizer(input []string, lang string, bundle *i18n.Bundle) map[string]string
- func MdToHTML(md []byte) []byte
- type Handler
- func (h *Handler) ChangeTheme(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteArticle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DownloadArticle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Editor(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetArticlesList(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCurrentUser(userID string) *models.User
- func (h *Handler) Logout(w http.ResponseWriter, r *http.Request)
- func (h *Handler) MDConvert(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PageNotFound(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Run(port string) error
- func (h *Handler) SaveFile(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SendCode(w http.ResponseWriter, r *http.Request, status StatusCode)
- func (h *Handler) ShowArticle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SignIn(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SignInPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SignUp(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SignUpPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Upload(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UploadArticle(w http.ResponseWriter, r *http.Request)
- type StatusCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) ChangeTheme ¶
func (h *Handler) ChangeTheme(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteArticle ¶
func (h *Handler) DeleteArticle(w http.ResponseWriter, r *http.Request)
DeleteArticle
func (*Handler) DownloadArticle ¶
func (h *Handler) DownloadArticle(w http.ResponseWriter, r *http.Request)
DownloadArticle
func (*Handler) GetArticlesList ¶
func (h *Handler) GetArticlesList(w http.ResponseWriter, r *http.Request)
Home page (Articles list)
func (*Handler) PageNotFound ¶
func (h *Handler) PageNotFound(w http.ResponseWriter, r *http.Request)
func (*Handler) SaveFile ¶
func (h *Handler) SaveFile(w http.ResponseWriter, r *http.Request)
SaveFile
func (*Handler) SendCode ¶
func (h *Handler) SendCode(w http.ResponseWriter, r *http.Request, status StatusCode)
func (*Handler) ShowArticle ¶
func (h *Handler) ShowArticle(w http.ResponseWriter, r *http.Request)
Show article
func (*Handler) SignInPost ¶
func (h *Handler) SignInPost(w http.ResponseWriter, r *http.Request)
func (*Handler) SignUpPost ¶
func (h *Handler) SignUpPost(w http.ResponseWriter, r *http.Request)
func (*Handler) UploadArticle ¶
func (h *Handler) UploadArticle(w http.ResponseWriter, r *http.Request)
UploadArticle
type StatusCode ¶
Click to show internal directories.
Click to hide internal directories.