# README
This folder contains the types that will be sent to the frontend. They are not the types which are recieved from the raw APIs - those should be kept in their respective parser files.
The type files should also contain the implemented Serialize()
function for that specific type (so that it
implements the InternalAPI
interface)
# Functions
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Types of actions.
Types of actions.
Types of actions.
Types of actions.
Types of actions.
Enumerates different possible message statuses.
Enumerates different possible message statuses.
# Structs
BaseAPI base for all APIs.
BaseMessage is the base message we are sending to frontend All structs being send to the frontend should inherit from this.
ClientMessage for configuring.
ClockConfig configuration arguments for clock api.
ClockResponse main format for data coming out of clock api.
CloseType represents when a socket closes, or a forceful close if Socket is nil.
Clouds contains cloud info.
Coord contains the lat and long.
ImageDB holds the images that we have access to.
Main contains a quick description of weather.
Position information for api widgets.
Rain contains rain info.
No description provided by the author
No description provided by the author
Sys contains info about the system?.
No description provided by the author
No description provided by the author
TaggedImage is an instance of an image with tags.
No description provided by the author
No description provided by the author
TwitterConfig configuration arguments for twitter api.
TwitterResponse main format for data coming out of twitter api.
Unregister stores info about which api to unregister, and weather the pool should be saved.
Weather contains the current weather.
WeatherConfig are the config settings for the API.
WeatherResponse is the struct that encodes the API data from our weather API.
Wind contains wind information.
# Interfaces
API is the entrance point of all apis to connect to a client.
DataObject holds the data from the external API.
Pool pool.
Socket interface, needed to avoid circular dependency with Socket package.
# Type aliases
ClientAction is fun.
MessageStatus indicates the broad type of message sent back to the client.