static

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

func NewStaticMiddleware

func NewStaticMiddleware(options ...MiddlewareOption) *Middleware

func (*Middleware) Wrap added in v0.2.0

type MiddlewareOption

type MiddlewareOption = func(*Middleware)

func WithFileSystem

func WithFileSystem(fs afero.Fs) MiddlewareOption

func WithIndex

func WithIndex(index string) MiddlewareOption

func WithLogger

func WithLogger(logger contracts.Logger) MiddlewareOption

func WithPrefix

func WithPrefix(prefix string) MiddlewareOption

Jump to

Keyboard shortcuts

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