manael: manael.org/x/manael Index | Examples | Files | Directories

package manael

import "manael.org/x/manael"

Package manael provides HTTP handler for processing images.

Index

Examples

Package Files

convert.go manael.go request.go

type ServeProxy Uses

type ServeProxy struct {
    UpstreamURL *url.URL
}

A ServeProxy responds to an HTTP request.

func NewServeProxy Uses

func NewServeProxy(rawURL string) *ServeProxy

NewServeProxy returns a new ServeProxy given a upstream URL

Code:

p := manael.NewServeProxy("http://localhost:9000")

err := http.ListenAndServe(":8080", p)
if err != nil {
    log.Fatal(err)
}

func (*ServeProxy) ServeHTTP Uses

func (p *ServeProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

PathSynopsis
cmd/manaelManael is a proxy server for processing images.

Package manael imports 13 packages (graph) and is imported by 1 packages. Updated 2018-10-20. Refresh now. Tools for package owners.