Documentation ¶
Index ¶
- func CreateUser(request *restful.Request, response *restful.Response)
- func FindAllUsers(request *restful.Request, response *restful.Response)
- func FindUserService(request *restful.Request, response *restful.Response)
- func New(repo PlayerRepository) *restful.WebService
- func RemoveUser(request *restful.Request, response *restful.Response)
- func UpdateUser(request *restful.Request, response *restful.Response)
- type MongoRepository
- type PlayerRepository
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(request *restful.Request, response *restful.Response)
func FindAllUsers ¶
func FindAllUsers(request *restful.Request, response *restful.Response)
func FindUserService ¶
func FindUserService(request *restful.Request, response *restful.Response)
func New ¶
func New(repo PlayerRepository) *restful.WebService
func RemoveUser ¶
func RemoveUser(request *restful.Request, response *restful.Response)
func UpdateUser ¶
func UpdateUser(request *restful.Request, response *restful.Response)
Types ¶
type MongoRepository ¶
type MongoRepository struct { }
func (MongoRepository) FindAllUsers ¶
func (m MongoRepository) FindAllUsers() []User
func (MongoRepository) GetUserCollection ¶
func (m MongoRepository) GetUserCollection() (*mgo.Collection, *mgo.Session)
func (MongoRepository) SaveUser ¶
func (m MongoRepository) SaveUser(usr User) error
type PlayerRepository ¶
Click to show internal directories.
Click to hide internal directories.