api

package
v0.0.0-...-c8cfa77 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUFFIX     = ".svg"
	READ_URL   = "/oo/"
	CREATE_URL = "/svg/"
	STATIC_URL = "/static/"
)

constants

Variables

View Source
var (
	VALIDATOR = regexp.MustCompile(`(?s)<svg\b[^>]*>(.*?)<\/svg>`)
	ENCODER   = base64.URLEncoding.WithPadding(base64.StdPadding).Strict()
)

weak constants

View Source
var (
	Debug *log.Logger
	Info  *log.Logger
	Error *log.Logger
)

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Types

type Link struct {
	Href string `json:"href"`
}

Link is the main output structure

Jump to

Keyboard shortcuts

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