makaroni

package module
v0.0.0-...-0fcd87c Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderIndexPage

func RenderIndexPage(logoURL string, indexURL string, faviconURL string) ([]byte, error)

func RenderOutputPre

func RenderOutputPre(logoURL string, indexURL string, faviconURL string) ([]byte, error)

func RespondServerInternalError

func RespondServerInternalError(w http.ResponseWriter, err error)

Types

type IndexData

type IndexData struct {
	LogoURL    string
	IndexURL   string
	LangList   []string
	FaviconURL string
}

type PasteHandler

type PasteHandler struct {
	IndexHTML          []byte
	OutputHTMLPre      []byte
	Upload             func(key string, content string, contentType string) error
	Style              string
	ResultURLPrefix    string
	MultipartMaxMemory int64
}

func (*PasteHandler) ServeHTTP

func (p *PasteHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type UploadFunc

type UploadFunc func(key string, content string, contentType string) error

func NewUploader

func NewUploader(endpoint string, region string, bucket string, keyID string, secret string) (UploadFunc, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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