dm
/
vain
forked from sm/vain
1
0
Fork 0
a simple go tool vanity url server.
Go to file
Stephen McQuay 479ef2b786
match on package substring
This allows godoc.org to work on nested packages. As it stood gddo would
fail trying to find nested packages. Let's say we have a vaind with this
route:

go.mcquay.me/vain -> https://s.mcquay.me/sm/vain

Asking godoc for go.mcquay.me/vain would work fine. However trying to
get documentation for go.mcquay.me/vain/errors (nested package) would
return 404 since it wouldn't match known paths exactly.

Since now we match and return "go.mcquay.me/vain" for the full path,
gddo is able to use local caches for its information.

Change-Id: I599a75898493734fc652e507f477c11b1b1b13e8
2016-06-28 21:52:26 -07:00
_static Fix error reporting on registration. 2016-05-22 23:10:51 -07:00
cmd/vaind clean up docs 2016-06-25 13:41:19 -07:00
errors fixed golint/go vet 2016-05-23 23:54:35 -07:00
metrics added metrics 2016-06-25 13:41:20 -07:00
static move static into own package 2016-06-05 22:41:56 -07:00
vendor/github.com added metrics 2016-06-25 13:41:20 -07:00
.gitignore Ignore compiled tests 2016-06-24 01:04:32 -07:00
api_test.go Use in-memory, on-disk-backed DB 2016-06-25 13:37:23 -07:00
contributing.md added contribution guidelines 2016-05-23 22:45:36 -07:00
db.go match on package substring 2016-06-28 21:52:26 -07:00
db_test.go match on package substring 2016-06-28 21:52:26 -07:00
doc.go clean up docs 2016-06-25 13:41:19 -07:00
gen.go move static into own package 2016-06-05 22:41:56 -07:00
licence.txt ysvd -> vaind 2016-02-16 23:30:00 -08:00
mail.go Use in-memory, on-disk-backed DB 2016-06-25 13:37:23 -07:00
readme.md update readme 2016-06-25 14:17:40 -07:00
server.go added metrics 2016-06-25 13:41:20 -07:00
storage.go Use in-memory, on-disk-backed DB 2016-06-25 13:37:23 -07:00
testing.go Use in-memory, on-disk-backed DB 2016-06-25 13:37:23 -07:00
vain.go clean up docs 2016-06-25 13:41:19 -07:00
vain_test.go Use in-memory, on-disk-backed DB 2016-06-25 13:37:23 -07:00

readme.md

vain

vaind is a vanity url server for use by the go tool.

installation

$ go get mcquay.me/vain/cmd/vaind

running server

$ VAIN_FROM=me@example.org vaind vain.db