manael

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 13 Imported by: 0

README

Manael

GoDoc CircleCI

A simple HTTP proxy for processing images.

Dependencies

  • libwebp

Installation

$ go get -u manael.org/x/manael/cmd/manael

Usage

$ manael -http=:8080 -upstream_url=http://localhost:9000

License

MIT

Documentation

Overview

Package manael provides HTTP handler for processing images.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeProxy

type ServeProxy struct {
	UpstreamURL *url.URL
}

A ServeProxy responds to an HTTP request.

func NewServeProxy

func NewServeProxy(rawURL string) *ServeProxy

NewServeProxy returns a new ServeProxy given a upstream URL

Example
package main

import (
	"log"
	"net/http"

	"manael.org/x/manael"
)

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

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

func (*ServeProxy) ServeHTTP

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

Directories

Path Synopsis
cmd
manael
Manael is a proxy server for processing images.
Manael is a proxy server for processing images.

Jump to

Keyboard shortcuts

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