generators

package
v0.0.0-...-a6da5b0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbedListFiles

func EmbedListFiles(efs *embed.FS) ([]string, error)

func MarkdownParseDate

func MarkdownParseDate(f string) (time.Time, error)

Types

type Embed

type Embed struct {
	FS   *embed.FS
	Name string
}

func (*Embed) GetByProducts

func (*Embed) GetByProducts(ch chan *runner.GeneratorByProduct)

func (*Embed) GetID

func (*Embed) GetID() string

func (*Embed) GetImmutable

func (*Embed) GetImmutable() bool

func (*Embed) GetReader

func (s *Embed) GetReader() (io.ReadCloser, error)

func (*Embed) GetTimeStamps

func (s *Embed) GetTimeStamps() ([]time.Time, error)

type File

type File string

func (File) GetByProducts

func (File) GetByProducts(ch chan *runner.GeneratorByProduct)

func (File) GetID

func (s File) GetID() string

func (File) GetImmutable

func (File) GetImmutable() bool

func (File) GetReader

func (s File) GetReader() (io.ReadCloser, error)

func (File) GetTimeStamps

func (s File) GetTimeStamps() ([]time.Time, error)

type HTTP

type HTTP struct {
	Url       string
	Header    http.Header
	Immutable bool
	// contains filtered or unexported fields
}

func (*HTTP) GetByProducts

func (*HTTP) GetByProducts(ch chan *runner.GeneratorByProduct)

func (*HTTP) GetID

func (*HTTP) GetID() string

func (*HTTP) GetImmutable

func (h *HTTP) GetImmutable() bool

func (*HTTP) GetReader

func (h *HTTP) GetReader() (io.ReadCloser, error)

func (*HTTP) GetTimeStamps

func (h *HTTP) GetTimeStamps() ([]time.Time, error)

type Markdown

type Markdown struct {
	Title             string
	Description       string
	URL               string
	SeriesStatus      string
	Sources           []*MarkdownSource
	IsPost            bool
	ExtraDependencies []string
	HighlightStyle    string
	Template          string
	TemplateCtx       map[string]interface{}
	Pagination        *templates.ContentPagination
	LayoutCtx         *templates.LayoutContext
}

func (*Markdown) GetByProducts

func (*Markdown) GetByProducts(ch chan *runner.GeneratorByProduct)

func (*Markdown) GetID

func (*Markdown) GetID() string

func (*Markdown) GetImmutable

func (*Markdown) GetImmutable() bool

func (*Markdown) GetReader

func (h *Markdown) GetReader() (io.ReadCloser, error)

func (*Markdown) GetTimeStamps

func (h *Markdown) GetTimeStamps() ([]time.Time, error)

type MarkdownSource

type MarkdownSource struct {
	File string
	URL  string
}

type Project

type Project struct {
	Owner     string
	Repo      string
	URL       string
	Template  string
	LayoutCtx *templates.LayoutContext
	Immutable bool
	// contains filtered or unexported fields
}

func (*Project) GetByProducts

func (p *Project) GetByProducts(ch chan *runner.GeneratorByProduct)

func (*Project) GetID

func (*Project) GetID() string

func (*Project) GetImmutable

func (p *Project) GetImmutable() bool

func (*Project) GetReader

func (p *Project) GetReader() (io.ReadCloser, error)

func (*Project) GetTimeStamps

func (p *Project) GetTimeStamps() ([]time.Time, error)

Jump to

Keyboard shortcuts

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