Discover Packages
github.com/jessewiles/jwixtac
server
package
Version:
v0.0.0-...-e85e7bf
Opens a new window with list of versions in this module.
Published: Jan 15, 2022
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
SPA is the main function for running the HTTP server
Client is a middleman between the websocket connection and the hub.
type FeedWSIFPayload struct {
Channel string `json:"channel"`
Message []Meme `json:"message"`
}
FeedWSIFPayload thing
type FeedWSPayload struct {
Channel string `json:"channel"`
Message []int `json:"message"`
}
FeedWSPayload is a thing
Hub maintains the set of active clients and broadcasts messages to the
clients.
type ImgFlipData struct {
Memes []Meme `json:"memes"`
}
ImgFlipData data
type ImgFlipPayl struct {
Data ImgFlipData `json:"data"`
}
ImgFlipPayl payload
type Meme struct {
ID string `json:"id"`
Name string `json:"name"`
URL string `json:"url"`
Width int `json:"width"`
Height int `json:"height"`
BoxCount int `json:"box_count"`
}
Meme imgflip meme
Source Files
¶
Click to show internal directories.
Click to hide internal directories.