package
0.0.0-20230221132528-3834a52fd169
Repository: https://github.com/zaprit/reflow.git
Documentation: pkg.go.dev

# Functions

APIErrorJSON takes an error string, marshals it to JSON and returns it in a solder compatible format.
ModpackModFormat converts a mod and a modVersion into a modpack build compatible doodad.

# Structs

APIError is the representation of an error sent by solder as a struct An Example of an error: {"error":"Mod does not exist"}.
APIInfo is the information sent to the technic client to verify that we're definitely talking to a solder server.
APIKey is the struct that represents an API key for the technic platform.
APIKeyVerifyResponse is the response if an api key successfully verifies.
BuildModversion is the DB map between modversions and modpack builds.
DBStructTemplate most all the tables in the database have these fields.
DBStructTemplateID is the same as DBStructTemplate however the ID is included in the JSON representation.
ListModpack is a stripped down modpack to save bandwidth while querying.
A Mod is a singular mod roughly compliant with what comes out the database and what gets turned into JSON.
ModList is for the most part a bodge to get the JSON document correct for /api/mod.
Modpack is a struct representation of a technic modpack.
ModpackBuild is a struct representation of a modpack build.
ModpackList is a list of slug/name pairs and the mirror URL, don't know why it's done like this but eh what can you do.
ModpackMod is the mod version type returned by /api/modpack/<slug>/<build>.
A ModVersion is a version of a mod with all the things required for JSON.
User the user struct is a user for solder.