Documentation
¶
Index ¶
- Constants
- func InitAuthApi(rg *routing.Router, session *mgo.Session)
- func InitCollectionApi(rg *routing.Router, session *mgo.Session)
- func InitEntityApi(rg *routing.Router, session *mgo.Session)
- func InitKeyApi(rg *routing.Router, session *mgo.Session)
- func InitLanguageApi(rg *routing.Router, session *mgo.Session)
- func InitMediaApi(rg *routing.Router, session *mgo.Session)
- func InitUserApi(rg *routing.Router, session *mgo.Session)
- type AuthApi
- type CollectionApi
- type EntityApi
- type KeyApi
- type LanguageApi
- type MediaApi
- type UserApi
Constants ¶
const ( // TokenIdentityUser specify "user" token idenity model. TokenIdentityUser = "user" // TokenIdentityUser specify "key" token idenity model. TokenIdentityKey = "key" )
Variables ¶
This section is empty.
Functions ¶
func InitAuthApi ¶
InitAuthApi sets up the routing of auth endpoints and the corresponding handlers.
func InitCollectionApi ¶
InitCollectionApi sets up the routing of collection endpoints and the corresponding handlers.
func InitEntityApi ¶
InitEntityApi sets up the routing of entity endpoints and the corresponding handlers.
func InitKeyApi ¶
InitKeyApi sets up the routing of Key endpoints and the corresponding handlers.
func InitLanguageApi ¶
InitLanguageApi sets up the routing of language endpoints and the corresponding handlers.
func InitMediaApi ¶
InitMediaApi sets up the routing of media endpoints and the corresponding handlers.
func InitUserApi ¶
InitUserApi sets up the routing of user endpoints and the corresponding handlers.
Types ¶
type AuthApi ¶
type AuthApi struct {
// contains filtered or unexported fields
}
AuthApi defines auth api services
type CollectionApi ¶
type CollectionApi struct {
// contains filtered or unexported fields
}
CollectionApi defines collection api services
type EntityApi ¶
type EntityApi struct {
// contains filtered or unexported fields
}
EntityApi defines entity api services
type KeyApi ¶
type KeyApi struct {
// contains filtered or unexported fields
}
KeyApi defines Key api services
type LanguageApi ¶
type LanguageApi struct {
// contains filtered or unexported fields
}
LanguageApi defines language api services