modv2

package
v0.208.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessRequest

func ProcessRequest(resource string) (string, string, string, error)

ProcessRequest resolves a resourve into its components

Types

type FsRetriever

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

FsRetriever is a filesystem retriever

func NewFs

func NewFs(fs afero.Fs) FsRetriever

NewFs returns a FsRetriever from a afero filesystem

func (FsRetriever) Retrieve

func (r FsRetriever) Retrieve(resource string) ([]byte, bool, error)

Retrieve implements the retriever interface for FsRetriever

type Retriever

type Retriever interface {
	Retrieve(resource string) (content []byte, cached bool, err error)
}

FsRetriever is an interface that returns file bytes and if the object should be cached in later steps

Jump to

Keyboard shortcuts

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