database: no more gorethink

This commit is contained in:
Cadey Ratio 2017-04-28 22:43:04 -07:00
parent 3952248c6a
commit d7461cfbf5
2 changed files with 5 additions and 7 deletions

View File

@ -15,8 +15,8 @@ const (
// CachedCert is an individual cached certificate in the database.
type CachedCert struct {
Key string `gorethink:"id" storm:"id"`
CryptoLevel CryptoLevel `gorethink:"cryptoLevel"`
Key string `storm:"id"`
CryptoLevel CryptoLevel
// PEM-encoded bytes with the above crypto level as a filter.
Body []byte `gorethink:"body"`
Body []byte
}

View File

@ -7,11 +7,9 @@ import (
// Route is a single HTTP route.
type Route struct {
ID string `gorethink:"id,omitempty" storm:"id"`
ID string `storm:"id"`
Creator string
Hostname string `gorethink:"hostname" storm:"index"`
Token string `gorethink:"token" storm:"-"` // deprecated
Hostname string `storm:"index"`
}
// F https://godoc.org/github.com/Xe/ln#F