http

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 9 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 HealthService

type HealthService struct{}

HealthService reports on the health of the service as a whole.

func (HealthService) Name

func (HealthService) Name() string

Name returns the name of the service.

func (HealthService) Register

func (s HealthService) Register(router *mux.Router)

Register sets up the http handler for this service with the given router.

func (HealthService) Shutdown

func (HealthService) Shutdown()

Shutdown is a no-op since there no long running processes for this service.

type ItemsService

type ItemsService struct {
	Storage arcade.ItemStorage
}

Items is used to manage the item assets.

func (ItemsService) Create

func (s ItemsService) Create(w http.ResponseWriter, r *http.Request)

func (ItemsService) Get

func (ItemsService) List

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)

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)

type LinksService

type LinksService struct {
	Storage arcade.LinkStorage
}

Links is used to manage the link assets.

func (LinksService) Create

func (s LinksService) Create(w http.ResponseWriter, r *http.Request)

func (LinksService) Get

func (LinksService) List

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)

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)

type MetricsService

type MetricsService struct{}

MetricsService that reports the metrics of the service.

func (MetricsService) Name

func (MetricsService) Name() string

Name returns the name of the service.

func (MetricsService) Register

func (MetricsService) Register(router *mux.Router)

Register sets up the http handler for this service with the given router.

func (MetricsService) Shutdown

func (MetricsService) Shutdown()

Shutdown is a no-op since there are no long running processes.

type PlayersService

type PlayersService struct {
	Storage arcade.PlayerStorage
}

Players is used to manage the player assets.

func (PlayersService) Create

func (s PlayersService) Create(w http.ResponseWriter, r *http.Request)

func (PlayersService) Get

func (PlayersService) List

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)

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)

type RoomsService

type RoomsService struct {
	Storage arcade.RoomStorage
}

Rooms is used to manage the room assets.

func (RoomsService) Create

func (s RoomsService) Create(w http.ResponseWriter, r *http.Request)

func (RoomsService) Get

func (RoomsService) List

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)

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)

Jump to

Keyboard shortcuts

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