http

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemsRoute string = "/items"
)
View Source
const (
	LinksRoute string = "/links"
)
View Source
const (
	PlayersRoute string = "/players"
)
View Source
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

Get handles a request to retrieve an item.

func (ItemsService) List

List handles a request to retrieve multiple items.

func (ItemsService) Name

func (ItemsService) Name() string

Name returns the name of the service.

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

Get handles a request to retrieve a link.

func (LinksService) List

List handles a request to retrieve multiple links.

func (LinksService) Name

func (LinksService) Name() string

Name returns the name of the service.

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

Get handles a request to retrieve a player.

func (PlayersService) List

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

Get handles a request to retrieve a room.

func (RoomsService) List

List handles a request to retrieve multiple rooms.

func (RoomsService) Name

func (RoomsService) Name() string

Name returns the name of the service.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL