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. // CachedCert is an individual cached certificate in the database.
type CachedCert struct { type CachedCert struct {
Key string `gorethink:"id" storm:"id"` Key string `storm:"id"`
CryptoLevel CryptoLevel `gorethink:"cryptoLevel"` CryptoLevel CryptoLevel
// PEM-encoded bytes with the above crypto level as a filter. // 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. // Route is a single HTTP route.
type Route struct { type Route struct {
ID string `gorethink:"id,omitempty" storm:"id"` ID string `storm:"id"`
Creator string Creator string
Hostname string `gorethink:"hostname" storm:"index"` Hostname string `storm:"index"`
Token string `gorethink:"token" storm:"-"` // deprecated
} }
// F https://godoc.org/github.com/Xe/ln#F // F https://godoc.org/github.com/Xe/ln#F