workshopimg

package
v0.0.0-...-54df73f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = httperr.New(404, "file not found")

ErrNotFound is used when a workshop file is not found.

View Source
var NoCache = CacheOpts{}

NoCache disables caching.

Functions

func Mount

func Mount(cacheOpts CacheOpts) (http.Handler, error)

Mount mounts the workshop image route.

Types

type CacheOpts

type CacheOpts struct {
	// CachePath is the path to the cache database.
	CachePath string
}

CacheOpts is the options for the workshop cache.

Jump to

Keyboard shortcuts

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