Documentation ¶
Overview ¶
Package web provides a web API for the generator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AchievementOutputType ¶
type AchievementOutputType string
AchievementOutputType is the type of output for the achievement endpoint.
var ( AchievementOutputTypeDefault AchievementOutputType = "" AchievementOutputTypeDownload AchievementOutputType = "download" )
AchievementOutputType constants.
type AchievementRequest ¶
type AchievementRequest struct { Background string `json:"background"` Title string `json:"title"` Text string `json:"text"` Output AchievementOutputType `json:"output"` }
AchievementRequest is the request body for the achievement endpoint.
type ErrorResponse ¶
ErrorResponse is the response body for errors.
type WebAPI ¶
WebAPI provides a web API for the generator using the fiber framework.
func (WebAPI) StartWebAPI ¶
func (web WebAPI) StartWebAPI()
StartWebAPI starts the WebAPI, registers all routes and blocks until the server is shut down.
Click to show internal directories.
Click to hide internal directories.