Documentation
¶
Index ¶
- func AccessLog(next http.Handler) http.Handler
- type BuyOrderRequest
- type BuyOrderResponse
- type DigActionRequest
- type DigActionResponse
- type GameInfoResponse
- type GetPlayerInventoryResponse
- type Item
- type ListMarketStockResponse
- type Listing
- type Player
- type Prerequisite
- type ProspectActionRequest
- type ProspectActionResponse
- type SellOrderRequest
- type SellOrderResponse
- type Server
- func (s *Server) BuyOrder(w http.ResponseWriter, req *http.Request)
- func (s *Server) DigAction(w http.ResponseWriter, req *http.Request)
- func (s *Server) GameInfo(w http.ResponseWriter, req *http.Request)
- func (s *Server) GetPlayerInventory(w http.ResponseWriter, req *http.Request)
- func (s *Server) ListMarketStock(w http.ResponseWriter, req *http.Request)
- func (s *Server) Ping(w http.ResponseWriter, req *http.Request)
- func (s *Server) ProspectAction(w http.ResponseWriter, req *http.Request)
- func (s *Server) SellOrder(w http.ResponseWriter, req *http.Request)
- func (s *Server) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuyOrderRequest ¶
type BuyOrderResponse ¶
type DigActionRequest ¶
type DigActionResponse ¶
type GameInfoResponse ¶
type GameInfoResponse struct {
Info string `json:"info"`
}
type GetPlayerInventoryResponse ¶
type GetPlayerInventoryResponse struct {
Player Player `json:"player"`
}
type Item ¶
type ListMarketStockResponse ¶
type Listing ¶
type Listing struct {
Name string `json:"name"`
Type string `json:"type"`
BuyPrice string `json:"buy_price"`
SellPrice string `json:"sell_price"`
Prerequisites []Prerequisite `json:"prerequisites,omitempty"`
}
func NewListing ¶
type Player ¶
type Prerequisite ¶
type ProspectActionRequest ¶
type ProspectActionResponse ¶
type SellOrderRequest ¶
type SellOrderResponse ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server contains the implementation.
func (*Server) BuyOrder ¶
func (s *Server) BuyOrder(w http.ResponseWriter, req *http.Request)
Buy an item from the market.
func (*Server) DigAction ¶
func (s *Server) DigAction(w http.ResponseWriter, req *http.Request)
Buy an item from the market.
func (*Server) GameInfo ¶
func (s *Server) GameInfo(w http.ResponseWriter, req *http.Request)
Retrieve information about the game.
func (*Server) GetPlayerInventory ¶
func (s *Server) GetPlayerInventory(w http.ResponseWriter, req *http.Request)
List stats for player, including their entire inventory.
func (*Server) ListMarketStock ¶
func (s *Server) ListMarketStock(w http.ResponseWriter, req *http.Request)
List entire market inventory.
func (*Server) Ping ¶
func (s *Server) Ping(w http.ResponseWriter, req *http.Request)
Ping service for availability.
func (*Server) ProspectAction ¶
func (s *Server) ProspectAction(w http.ResponseWriter, req *http.Request)
Sell an item on the market.
Click to show internal directories.
Click to hide internal directories.