markdown

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 19 Imported by: 0

README

markdown

test

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Markdown

type Markdown struct {
	Root      string   `json:"root,omitempty"`
	Template  string   `json:"template,omitempty"`
	Hide      []string `json:"hide,omitempty"`
	MIMETypes []string `json:"mime_types,omitempty"`
	// The names of files to try as index files if a folder is requested.
	// Default: index.html index.htm
	IndexNames []string `json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (Markdown) CaddyModule

func (Markdown) CaddyModule() caddy.ModuleInfo

func (*Markdown) Provision

func (md *Markdown) Provision(ctx caddy.Context) error

Provision sets up the module. #caddy.Provisioner

func (*Markdown) ServeHTTP

func (md *Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) (err error)

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*Markdown) Validate

func (md *Markdown) Validate() error

Validate ensures md has a valid configuration. #caddy.Validator Validate should be a read-only function. It is run after the Provision() method.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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