Documentation ¶
Index ¶
- func Create(model Model, session *mgo.Session) http.Handler
- func Delete(model Model, session *mgo.Session) http.Handler
- func List(model ModelSlice, session *mgo.Session) http.Handler
- func MustEnv(key string) (value string)
- func NewDBSession() *mgo.Session
- func NewServer(handler http.Handler) *http.Server
- func Retrieve(model Model, session *mgo.Session) http.Handler
- func RunServer(server *http.Server)
- func Update(model Model, session *mgo.Session) http.Handler
- type Model
- type ModelSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBSession ¶
Types ¶
type ModelSlice ¶
type ModelSlice interface {
ModelName() string
}
Click to show internal directories.
Click to hide internal directories.