Versions in this module Expand all Collapse all v1 v1.2.1 Oct 8, 2022 Changes in this version type Options + Config *config.Toml v1.2.0 Oct 7, 2022 Changes in this version + func NewHTTPServer(config *config.Toml, handler http.Handler) *http.Server + func NewHandler(o *Options) http.Handler + func NewTemplate(config *config.Toml) (*template.Template, error) + type About struct + Config *config.Toml + Service service.IArticle + Template *template.Template + func (h *About) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ArticleDetail struct + Config *config.Toml + Service service.IArticle + Template *template.Template + func (h *ArticleDetail) ServeHTTP(w http.ResponseWriter, r *http.Request) + type CDNProxy struct + Config *config.Toml + Service service.IArticle + Template *template.Template + func (h *CDNProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) + type HomePage struct + Config *config.Toml + Service service.IArticle + Template *template.Template + func (h *HomePage) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options struct + About *About + ArticleDetail *ArticleDetail + CDNProxy *CDNProxy + HomePage *HomePage + Search *Search + type Search struct + Config *config.Toml + Service service.IArticle + Template *template.Template + func (h *Search) ServeHTTP(w http.ResponseWriter, r *http.Request)