plak

package
v0.0.0-...-1d13ee8 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebConfig

type WebConfig struct {
	DB        *redis.Client
	URLLength uint8
	Templates embed.FS
}

func (WebConfig) CurlCreate

func (config WebConfig) CurlCreate(w http.ResponseWriter, r *http.Request)

CurlCreate PostCreate plak with minimum param, ideal for curl. Force 7 day expiration.

func (WebConfig) DeleteRequest

func (config WebConfig) DeleteRequest(w http.ResponseWriter, r *http.Request)

DeleteRequest manage plak deletion endpoint.

func (WebConfig) PostCreate

func (config WebConfig) PostCreate(w http.ResponseWriter, r *http.Request)

PostCreate manage POST request for create plak.

func (WebConfig) View

func (config WebConfig) View(w http.ResponseWriter, r *http.Request)

View for plak.

Jump to

Keyboard shortcuts

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