apimdl

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package apimdl models communicating between the frontend and backend

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModFindRequest

type ModFindRequest struct {
	NameID     string             `json:"nameId"`
	Slugs      []string           `json:"slugs"`
	ModLoaders coremdl2.ModLoader `json:"modLoaders"`
}

func (ModFindRequest) String

func (r ModFindRequest) String() string

type ModSearchRequest

type ModSearchRequest struct {
	Query      string             `json:"query"`
	ModLoaders coremdl2.ModLoader `json:"modLoaders"`
	MCVersion  coremdl2.MCVersion `json:"mcVersion"`
}

func (ModSearchRequest) String

func (r ModSearchRequest) String() string

type ModSearchResult

type ModSearchResult struct {
	Results []coremdl2.Mod `json:"results"`
}

type VersionLatestRequest

type VersionLatestRequest struct {
	ModID     string             `json:"modId"`
	MCVersion coremdl2.MCVersion `json:"mcVersion"`
	ModLoader coremdl2.ModLoader `json:"modLoader"`
}

type VersionLatestResponse added in v0.1.2

type VersionLatestResponse struct {
	LatestVersion *coremdl2.Version `json:"versions"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL