Documentation ¶
Index ¶
- func AllMatches(request *restful.Request, response *restful.Response)
- func CreateMatch(request *restful.Request, response *restful.Response)
- func FindMatch(request *restful.Request, response *restful.Response)
- func New(pRepo playerservice.PlayerRepository) *restful.WebService
- func RemoveMatch(request *restful.Request, response *restful.Response)
- func SaveMatch(usr Match)
- func ValidateMatch(match Match) error
- func ValidatePlayersInMatch(match Match)
- type Match
- type MatchRepository
- type MongoMatchRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllMatches ¶
func AllMatches(request *restful.Request, response *restful.Response)
func CreateMatch ¶
func CreateMatch(request *restful.Request, response *restful.Response)
func New ¶
func New(pRepo playerservice.PlayerRepository) *restful.WebService
func RemoveMatch ¶
func RemoveMatch(request *restful.Request, response *restful.Response)
func ValidateMatch ¶
func ValidatePlayersInMatch ¶
func ValidatePlayersInMatch(match Match)
Types ¶
type MatchRepository ¶
type MongoMatchRepository ¶
type MongoMatchRepository struct { }
func (MongoMatchRepository) FindAllMatches ¶
func (m MongoMatchRepository) FindAllMatches() []Match
func (MongoMatchRepository) FindMatch ¶
func (m MongoMatchRepository) FindMatch(id string) Match
func (MongoMatchRepository) MatchCollection ¶
func (m MongoMatchRepository) MatchCollection() (*mgo.Collection, *mgo.Session)
func (MongoMatchRepository) SaveMatch ¶
func (m MongoMatchRepository) SaveMatch(match Match)
Click to show internal directories.
Click to hide internal directories.