Documentation ¶
Overview ¶
Package rendering is responsible for rendering game boards by ID in their current state
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardRenderHandler ¶
type BoardRenderHandler struct {
LinkRenderer RenderLink
}
BoardRenderHandler handles all image requests from Slack
func (BoardRenderHandler) ServeHTTP ¶
func (b BoardRenderHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP is a request handler
type RenderLink ¶
type RenderLink struct {
// contains filtered or unexported fields
}
RenderLink is a simple struct for creating valid external board URLs
func NewRenderLink ¶
func NewRenderLink(hostname string, signingKey string) RenderLink
NewRenderLink creates a new RenderLink struct instance
func (RenderLink) CreateLink ¶
CreateLink returns an externally accessible board URL at the current game state
func (RenderLink) ValidateLink ¶
func (r RenderLink) ValidateLink(url url.URL) bool
ValidateLink ensures that the link signatuer is signed properly with the app signing key
Click to show internal directories.
Click to hide internal directories.