a simple go tool vanity url server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
406B

  1. package vain
  2. import "time"
  3. // Storer defines the db interface.
  4. type Storer interface {
  5. NSForToken(ns namespace, tok Token) error
  6. Package(path string) (Package, error)
  7. AddPackage(p Package) error
  8. RemovePackage(pth path) error
  9. PackageExists(pth path) bool
  10. Pkgs() []Package
  11. Register(e Email) (Token, error)
  12. Confirm(tok Token) (Token, error)
  13. Forgot(e Email, window time.Duration) (Token, error)
  14. }