ropt

package
v0.0.0-...-442774c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemAssetFactory

type FileSystemAssetFactory struct {
	FS fsapi.Interface
}

func (FileSystemAssetFactory) Factory

func (this FileSystemAssetFactory) Factory(name string) (exec http_render.Asset, err error)

type Option

type Option = http_render.Option

func AppendFileNames

func AppendFileNames(fileNames ...string) Option

func AssetFinder

func AssetFinder(finder assetFinder) Option

func Context

func Context(ctx context.Context) Option

func ContextValue

func ContextValue(key, value interface{}) Option

func Data

func Data(data interface{}) Option

func Dir

func Dir(pth string) Option

func DirectoryIndexDisabled

func DirectoryIndexDisabled() Option

func DirectoryIndexEnabled

func DirectoryIndexEnabled() Option

func FS

func FileNames

func FileNames(fileNames ...string) Option

func FuncMap

func FuncMap(funcMap ...map[string]interface{}) Option

func Request

func Request(req *http.Request) Option

func Status

func Status(value int) Option

Jump to

Keyboard shortcuts

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