weque

package module
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

README

CircleCI

Weque is a server to receive webhooks written with modern libraries.

Getting Started

  • ngrok
Preparing
$ ngrok http 3000
...

SECRET_TOKEN=abc123 go run ./cmd/weque/main.go server
...

TBD

Create and list
$ weque github create \
        tmtk75/weque \
        https://3def21d4.ngrok.io/github \
	abc123

TBD

Receive

Debug

tcpflow on MacOS
$ tcpflow -i lo0 -c 'port 3000'

Development

[0]$ go run ./cmd/weque/main.go serve
...

[1]$ ngrok http 9981

Credit

The GitHub icon made by Dave Gandy from www.flaticon.com is licensed by CC 3.0 BY
The Bitbucket icon made by Swifticons from www.flaticon.com is licensed by CC 3.0 BY

Documentation

Index

Constants

View Source
const (
	ShortenMax      = 32 // max length to shorten
	KeySecretToken  = "secret_token"
	KeyInsecureMode = "insecure" // Skip verification step for development
	KeyPrefix       = "prefix"
)

Variables

This section is empty.

Functions

func Run

func Run(env []string, wd, s string, args ...string) error

func SendError

func SendError(w http.ResponseWriter, status int, msg string)

Types

This section is empty.

Directories

Path Synopsis
cmd
weque command

Jump to

Keyboard shortcuts

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