message

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Model *conf.Model
}

func NewArticle

func NewArticle(model *conf.Model) *Article

func (*Article) Build

func (a *Article) Build(path string) error

func (*Article) Serve

func (a *Article) Serve(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

type Catalog

type Catalog struct {
	Model string
}

func NewCatalog

func NewCatalog(model string) *Catalog

func (*Catalog) Build

func (c *Catalog) Build(path string) error

func (*Catalog) Serve

func (c *Catalog) Serve(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

type Customize

type Customize struct {
	Model *conf.Model
}

func NewCustomize

func NewCustomize(model *conf.Model) *Customize

func (*Customize) Build

func (c *Customize) Build(path string) error

func (*Customize) Serve

type Document

type Document struct {
	Model *conf.Model
}

func NewDocument

func NewDocument(model *conf.Model) *Document

func (*Document) Build

func (d *Document) Build(path string) error

func (*Document) Serve

type Feeds

type Feeds struct {
	Model string
}

func NewFeeds

func NewFeeds(model string) *Feeds

func (*Feeds) Build

func (f *Feeds) Build(name string) (int, error)

func (*Feeds) Serve

func (f *Feeds) Serve(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

type I18N

type I18N struct {
	Model *conf.Model
}

func NewI18N

func NewI18N(model *conf.Model) *I18N

func (*I18N) Build

func (i *I18N) Build(path string) error

func (*I18N) Serve

func (i *I18N) Serve(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

type Message

type Message struct {
	Path    string
	Site    *conf.Site
	Theme   *conf.Theme
	Message *compose.Markdown
	Catalog *compose.Catalog
	Sidebar []*conf.Node
}

type Page

type Page struct {
	Model *conf.Model
}

func NewPage

func NewPage(model *conf.Model) *Page

func (*Page) Build

func (p *Page) Build(path string) error

func (*Page) Serve

func (p *Page) Serve(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

type Sitemap

type Sitemap struct{}

func NewSitemap

func NewSitemap() *Sitemap

func (*Sitemap) Build

func (s *Sitemap) Build(name string) (int, error)

func (*Sitemap) BuildList

func (s *Sitemap) BuildList() (int, error)

func (*Sitemap) Serve

func (s *Sitemap) Serve(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*Sitemap) ServeList

func (s *Sitemap) ServeList(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL