defaultresolver

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 35 Imported by: 0

Documentation

Overview

TODO: this should potentially be split out into its own file

Index

Constants

This section is empty.

Variables

View Source
var (
	EncodeOptions = map[string]map[int]int{
		".jpeg": {lilliput.JpegQuality: 85},
		".png":  {lilliput.PngCompression: 7},
		".webp": {lilliput.WebpQuality: 85},
	}
)

Functions

func Initialize

func Initialize(router *chi.Mux, baseURL string)

func InitializeThumbnail

func InitializeThumbnail(router *chi.Mux)

Types

type R

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

func New

func New(baseURL string) *R

func (*R) HandleRequest

func (dr *R) HandleRequest(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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