Documentation ¶
Index ¶
- func AdminRouter(dbpool *pgxpool.Pool) *mux.Router
- type App
- func (app *App) Authenticate(w http.ResponseWriter, r *http.Request)
- func (app *App) CreateArticle(w http.ResponseWriter, r *http.Request)
- func (app *App) CreateUser(w http.ResponseWriter, r *http.Request)
- func (app *App) Dashboard(w http.ResponseWriter, r *http.Request)
- func (app *App) DeleteArticle(w http.ResponseWriter, r *http.Request)
- func (app *App) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (app *App) ListArticles(w http.ResponseWriter, r *http.Request)
- func (app *App) ListUsers(w http.ResponseWriter, r *http.Request)
- func (app *App) Logout(w http.ResponseWriter, r *http.Request)
- func (app *App) RegisterUser(w http.ResponseWriter, r *http.Request)
- func (app *App) UpdateArticle(w http.ResponseWriter, r *http.Request)
- func (app *App) UpdateUser(w http.ResponseWriter, r *http.Request)
- func (app *App) ViewArticle(w http.ResponseWriter, r *http.Request)
- func (app *App) ViewUser(w http.ResponseWriter, r *http.Request)
- type ArticlePageData
- type ArticleUpdateTemplate
- type ArticlesPageData
- type AuthTemplate
- type UserCreateTemplate
- type UserRegistrationTemplate
- type UserUpdateTemplate
- type UsersPageData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { DB *pgxpool.Pool BustCssCache string BustJsCache string SessionStore *redistore.RediStore }
func (*App) Authenticate ¶
func (app *App) Authenticate(w http.ResponseWriter, r *http.Request)
func (*App) CreateArticle ¶
func (app *App) CreateArticle(w http.ResponseWriter, r *http.Request)
func (*App) CreateUser ¶
func (app *App) CreateUser(w http.ResponseWriter, r *http.Request)
func (*App) DeleteArticle ¶
func (app *App) DeleteArticle(w http.ResponseWriter, r *http.Request)
func (*App) DeleteUser ¶
func (app *App) DeleteUser(w http.ResponseWriter, r *http.Request)
func (*App) ListArticles ¶
func (app *App) ListArticles(w http.ResponseWriter, r *http.Request)
func (*App) RegisterUser ¶
func (app *App) RegisterUser(w http.ResponseWriter, r *http.Request)
func (*App) UpdateArticle ¶
func (app *App) UpdateArticle(w http.ResponseWriter, r *http.Request)
func (*App) UpdateUser ¶
func (app *App) UpdateUser(w http.ResponseWriter, r *http.Request)
func (*App) ViewArticle ¶
func (app *App) ViewArticle(w http.ResponseWriter, r *http.Request)
type ArticlePageData ¶
type ArticlePageData struct { ID string Title string Description sql.NullString Keywords sql.NullString Body string BustCssCache string BustJsCache string }
type ArticleUpdateTemplate ¶
type ArticlesPageData ¶
type ArticlesPageData struct { Title string Description sql.NullString Keywords sql.NullString Articles []types.Article BustCssCache string BustJsCache string }
type AuthTemplate ¶
type UserCreateTemplate ¶
type UserUpdateTemplate ¶
Click to show internal directories.
Click to hide internal directories.