staticfile

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticfileConfigName = "Staticfile"
	CaddyfilePath        = "Caddyfile"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticfileConfig

type StaticfileConfig struct {
	RootDir string `yaml:"root"`
	// IndexFallback controls whether to fall back to index.html for unmatched routes (default: true)
	IndexFallback *bool `yaml:"index_fallback"`
}

Staticfile in a directory is parsed into this structure

type StaticfileProvider

type StaticfileProvider struct{}

func (*StaticfileProvider) CleansePlan added in v0.13.0

func (p *StaticfileProvider) CleansePlan(buildPlan *plan.BuildPlan)

func (*StaticfileProvider) Detect

func (*StaticfileProvider) Initialize added in v0.0.23

func (p *StaticfileProvider) Initialize(ctx *generate.GenerateContext) error

func (*StaticfileProvider) Name

func (p *StaticfileProvider) Name() string

func (*StaticfileProvider) Plan

func (*StaticfileProvider) StartCommandHelp added in v0.0.28

func (p *StaticfileProvider) StartCommandHelp() string

Jump to

Keyboard shortcuts

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