wuu

package module
v0.0.0-...-1fbe360 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0

README

wuu

wuu is a simple pastebin service built in Go. Simply post any text data to the server and it'll give you a paste link.

Usage

Simply compile using the go toolchain then specify a directory for the leveldb database to be stored using the "-db" flag. By default wuu listens on all interfaces, this can be changed using the "-addr" flag.

Start wuu.

wuu -db="~/wuudb"

Start wuu and force listening to loopback interface.

wuu -addr="localhost:8080" -db="~/wuudb"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(addr, dbname string) (err error)

Listen opens the database at the filepath dbname and listens on the TCP network address addr. RootHandler and UploadHandler are registered as handlers for Get and Post requests respectively.

Types

This section is empty.

Directories

Path Synopsis
cmd
wuu
Package verbs provides a simple method to filter request method with the net/http ServeMux.
Package verbs provides a simple method to filter request method with the net/http ServeMux.

Jump to

Keyboard shortcuts

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