Documentation ¶
Index ¶
- Constants
- type ItemsService
- func (s ItemsService) Create(w http.ResponseWriter, r *http.Request)
- func (s ItemsService) Get(w http.ResponseWriter, r *http.Request)
- func (s ItemsService) List(w http.ResponseWriter, r *http.Request)
- func (ItemsService) Name() string
- func (s ItemsService) Register(router *mux.Router)
- func (s ItemsService) Remove(w http.ResponseWriter, r *http.Request)
- func (ItemsService) Shutdown()
- func (s ItemsService) Update(w http.ResponseWriter, r *http.Request)
- type LinksService
- func (s LinksService) Create(w http.ResponseWriter, r *http.Request)
- func (s LinksService) Get(w http.ResponseWriter, r *http.Request)
- func (s LinksService) List(w http.ResponseWriter, r *http.Request)
- func (LinksService) Name() string
- func (s LinksService) Register(router *mux.Router)
- func (s LinksService) Remove(w http.ResponseWriter, r *http.Request)
- func (LinksService) Shutdown()
- func (s LinksService) Update(w http.ResponseWriter, r *http.Request)
- type PlayersService
- func (s PlayersService) Create(w http.ResponseWriter, r *http.Request)
- func (s PlayersService) Get(w http.ResponseWriter, r *http.Request)
- func (s PlayersService) List(w http.ResponseWriter, r *http.Request)
- func (PlayersService) Name() string
- func (s PlayersService) Register(router *mux.Router)
- func (s PlayersService) Remove(w http.ResponseWriter, r *http.Request)
- func (PlayersService) Shutdown()
- func (s PlayersService) Update(w http.ResponseWriter, r *http.Request)
- type RoomsService
- func (s RoomsService) Create(w http.ResponseWriter, r *http.Request)
- func (s RoomsService) Get(w http.ResponseWriter, r *http.Request)
- func (s RoomsService) List(w http.ResponseWriter, r *http.Request)
- func (RoomsService) Name() string
- func (s RoomsService) Register(router *mux.Router)
- func (s RoomsService) Remove(w http.ResponseWriter, r *http.Request)
- func (RoomsService) Shutdown()
- func (s RoomsService) Update(w http.ResponseWriter, r *http.Request)
Constants ¶
const (
ItemsRoute string = "/items"
)
const (
LinksRoute string = "/links"
)
const (
PlayersRoute string = "/players"
)
const (
RoomsRoute string = "/rooms"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemsService ¶
type ItemsService struct {
Storage arcade.ItemsStorage
}
Items is used to manage the item assets.
func (ItemsService) Create ¶
func (s ItemsService) Create(w http.ResponseWriter, r *http.Request)
Create handles a request to create an item.
func (ItemsService) Get ¶
func (s ItemsService) Get(w http.ResponseWriter, r *http.Request)
Get handles a request to retrieve an item.
func (ItemsService) List ¶
func (s ItemsService) List(w http.ResponseWriter, r *http.Request)
List handles a request to retrieve multiple items.
func (ItemsService) Register ¶
func (s ItemsService) Register(router *mux.Router)
Register sets up the http handler for this service with the given router.
func (ItemsService) Remove ¶
func (s ItemsService) Remove(w http.ResponseWriter, r *http.Request)
Remove handles a request to remove an item.
func (ItemsService) Shutdown ¶
func (ItemsService) Shutdown()
Shutdown is a no-op since there no long running processes for this service... yet.
func (ItemsService) Update ¶
func (s ItemsService) Update(w http.ResponseWriter, r *http.Request)
Update handles a request to update an item.
type LinksService ¶
type LinksService struct {
Storage arcade.LinksStorage
}
Links is used to manage the link assets.
func (LinksService) Create ¶
func (s LinksService) Create(w http.ResponseWriter, r *http.Request)
Create handles a request to create a link.
func (LinksService) Get ¶
func (s LinksService) Get(w http.ResponseWriter, r *http.Request)
Get handles a request to retrieve a link.
func (LinksService) List ¶
func (s LinksService) List(w http.ResponseWriter, r *http.Request)
List handles a request to retrieve multiple links.
func (LinksService) Register ¶
func (s LinksService) Register(router *mux.Router)
Register sets up the http handler for this service with the given router.
func (LinksService) Remove ¶
func (s LinksService) Remove(w http.ResponseWriter, r *http.Request)
Remove handles a request to remove a link.
func (LinksService) Shutdown ¶
func (LinksService) Shutdown()
Shutdown is a no-op since there no long running processes for this service... yet.
func (LinksService) Update ¶
func (s LinksService) Update(w http.ResponseWriter, r *http.Request)
Update handles a request to update a link.
type PlayersService ¶
type PlayersService struct {
Storage arcade.PlayersStorage
}
Players is used to manage the player assets.
func (PlayersService) Create ¶
func (s PlayersService) Create(w http.ResponseWriter, r *http.Request)
Create handles a request to create a player.
func (PlayersService) Get ¶
func (s PlayersService) Get(w http.ResponseWriter, r *http.Request)
Get handles a request to retrieve a player.
func (PlayersService) List ¶
func (s PlayersService) List(w http.ResponseWriter, r *http.Request)
List handles a request to retrieve multiple players.
func (PlayersService) Name ¶
func (PlayersService) Name() string
Name returns the name of the service.
func (PlayersService) Register ¶
func (s PlayersService) Register(router *mux.Router)
Register sets up the http handler for this service with the given router.
func (PlayersService) Remove ¶
func (s PlayersService) Remove(w http.ResponseWriter, r *http.Request)
Remove handles a request to remove a player.
func (PlayersService) Shutdown ¶
func (PlayersService) Shutdown()
Shutdown is a no-op since there no long running processes for this service... yet.
func (PlayersService) Update ¶
func (s PlayersService) Update(w http.ResponseWriter, r *http.Request)
Update handles a request to update a player.
type RoomsService ¶
type RoomsService struct {
Storage arcade.RoomsStorage
}
Rooms is used to manage the room assets.
func (RoomsService) Create ¶
func (s RoomsService) Create(w http.ResponseWriter, r *http.Request)
Create handles a request to retrieve a room.
func (RoomsService) Get ¶
func (s RoomsService) Get(w http.ResponseWriter, r *http.Request)
Get handles a request to retrieve a room.
func (RoomsService) List ¶
func (s RoomsService) List(w http.ResponseWriter, r *http.Request)
List handles a request to retrieve multiple rooms.
func (RoomsService) Register ¶
func (s RoomsService) Register(router *mux.Router)
Register sets up the http handler for this service with the given router.
func (RoomsService) Remove ¶
func (s RoomsService) Remove(w http.ResponseWriter, r *http.Request)
Remove handles a request to remove a room.
func (RoomsService) Shutdown ¶
func (RoomsService) Shutdown()
Shutdown is a no-op since there no long running processes for this service... yet.
func (RoomsService) Update ¶
func (s RoomsService) Update(w http.ResponseWriter, r *http.Request)
Update handles a request to update a room.