alvu

package
v0.2.16-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlvuConfig

type AlvuConfig struct {
	HookDir  string
	OutDir   string
	RootPath string

	BaseURL            string
	EnableHardWrap     bool
	EnableHighlighting bool
	HighlightingTheme  string

	Serve        bool
	PollDuration int
	PortNumber   string

	Transformers map[string][]transformers.Transfomer
	// contains filtered or unexported fields
}

func (*AlvuConfig) Build

func (ac *AlvuConfig) Build() error

func (*AlvuConfig) FlushFiles

func (ac *AlvuConfig) FlushFiles(files []HookedFile) error

func (*AlvuConfig) HandlePublicFiles

func (ac *AlvuConfig) HandlePublicFiles(files []string) (err error)

func (*AlvuConfig) NormalisePort

func (ac *AlvuConfig) NormalisePort(port string) string

func (*AlvuConfig) ReadDir

func (ac *AlvuConfig) ReadDir(dir string) (filepaths []string, err error)

func (*AlvuConfig) ReadLayout

func (ac *AlvuConfig) ReadLayout() string

func (*AlvuConfig) Rebuild

func (ac *AlvuConfig) Rebuild(path string)

func (*AlvuConfig) Run

func (ac *AlvuConfig) Run() error

func (*AlvuConfig) ServeHandler

func (ac *AlvuConfig) ServeHandler(rw http.ResponseWriter, req *http.Request)

func (*AlvuConfig) StartServer

func (ac *AlvuConfig) StartServer() error

type HookFn

type HookFn func(path string)

type HookSource

type HookSource struct {
	ForSingleFile bool
	ForFile       string
	// contains filtered or unexported fields
}

type HookedFile

type HookedFile struct {
	transformers.TransformedFile
	// contains filtered or unexported fields
}

type Hooks

type Hooks struct {
	// contains filtered or unexported fields
}

func (*Hooks) Load

func (h *Hooks) Load()

func (*Hooks) ProcessFile

func (h *Hooks) ProcessFile(file transformers.TransformedFile) (hookedFile HookedFile)

type Logger

type Logger struct {
	LogPrefix string
}

func NewLogger

func NewLogger() Logger

func (*Logger) Debug

func (l *Logger) Debug(msg string)

func (*Logger) Error

func (l *Logger) Error(msg string)

func (*Logger) Info

func (l *Logger) Info(msg string)

func (*Logger) Success

func (l *Logger) Success(msg string)

func (*Logger) Warning

func (l *Logger) Warning(msg string)

type PageRenderData

type PageRenderData struct {
	Meta   SiteMeta
	Data   map[string]interface{}
	Extras map[string]interface{}
}

type SiteMeta

type SiteMeta struct {
	BaseURL string
}

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher() *Watcher

func (*Watcher) AddDir

func (p *Watcher) AddDir(path string)

func (*Watcher) Start

func (p *Watcher) Start()

Jump to

Keyboard shortcuts

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