Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UnderlyingStore ¶
type UnderlyingStore interface { Read(table string, key string, value interface{}) (interface{}, error) Write(table string, value ...interface{}) error }
UnderlyingStore represents the interface that the DB should implement to be usable
type User ¶
type User struct { ID uint `json:"ID"` Name string `json:"Name"` Password string `json:"Password"` Email Email `json:"Email"` }
User models a shop user
type UserStore ¶
type UserStore interface { // GetPasswordFor returns the password for the given user GetPasswordFor(name string) (string, error) }
UserStore models the user DB
type UserTable ¶
type UserTable struct {
// contains filtered or unexported fields
}
UserTable returns the table for users
func (*UserTable) GetTableSchema ¶
func (u *UserTable) GetTableSchema() *memdb.TableSchema
GetTableSchema returns the table schema for users
type Validatable ¶
type Validatable interface {
Validate() error
}
Validatable is an item which has to adhere to certain convetions and knows how to check that it is correct
Click to show internal directories.
Click to hide internal directories.