1
0
forked from sm/vain
Commit Graph

10 Commits

Author SHA1 Message Date
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
aa1ef99295
added metrics
Change-Id: I7727bd43911339f48e2d096f8bb43729eb65b3ad
2016-06-25 13:41:20 -07:00
c575677088
Use in-memory, on-disk-backed DB
- removed sqlite
- added stubs for MemDB
- removed sqlite3 vendor

Fixes #7

Change-Id: I97b7f274be8db5ff02d9a4e4b8f616403fd6313a
2016-06-25 13:37:23 -07:00
99cdbf1847
Simplify some SQL
Change-Id: I0ea64662c90f948cd61bb1db855c139fa1be8a9e
2016-06-24 01:04:33 -07:00
45c0af4d1e
Better error reporting
Change-Id: I36dc5ad3648c5b4ac2cc2c72ba90fec7398090bf
2016-06-24 01:04:33 -07:00
480304bd87
add support for sending emails
Change-Id: I9749cda3b997d70271cb4ca709a7cca82a9a0948
2016-06-10 12:57:41 -07:00
295a7c3840
Only return the meta for requested package
the go tool currenty has a pathology where it mistakingly claims it
can't clone a repo because it checks prefix by bytes, not by splitting
the path on slash.

Once https://github.com/golang/go/issues/15947 comes out (go1.8) then go
tools will be able to handle being provided with valid but overlapping
packages.

For now though we'll just return meta for the requested package.

Change-Id: Ie5026e7d5c1377ff7d2c2140b21f9b745af69764
2016-06-05 22:41:56 -07:00
435e28966a
fixed golint/go vet
Change-Id: Id8aa01511f459d45f9dc3270e1d13b8682944016
2016-05-23 23:54:35 -07:00
c99f57527f
gate forget email frequency.
Change-Id: Id0f3bd2ec7c6714d23f9989a341855da5c8aa1bf
2016-05-14 23:58:56 -07:00
680eecb111
Added simple user auth
Fixes #14.

Change-Id: I748933214f43ac7298f1e93c14bb0ee881976d43
2016-04-27 21:29:48 -07:00