model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildProject

type BuildProject struct {
	ProjectID   string    `json:"project_id"`
	ProjectName string    `json:"project_name"`
	Version     string    `json:"version"`
	Build       int       `json:"build"`
	Time        time.Time `json:"time"`
	Channel     string    `json:"channel"`
	Promoted    bool      `json:"promoted"`
	Changes     []Change  `json:"changes"`
	Downloads   Downloads `json:"downloads"`
}

type Change

type Change struct {
	Commit  string `json:"commit"`
	Summary string `json:"summary"`
	Message string `json:"message"`
}

type Config

type Config struct {
	// Path to the server jar
	PaperVersion string `json:"paper_version"`
	JarName      string
	Server       Server `json:"server"`
	Plugin       Plugin `json:"plugin"`
}

type Downloads

type Downloads struct {
	Application struct {
		Name   string `json:"name"`
		Sha256 string `json:"sha256"`
	} `json:"application"`
	MojangMappings struct {
		Name   string `json:"name"`
		Sha256 string `json:"sha256"`
	} `json:"mojang-mappings"`
}

type Plugin

type Plugin struct {
	Download bool      `json:"download"`
	Plugins  []Plugins `json:"plugins"`
}

type Plugins

type Plugins struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

type Project

type Project struct {
	ProjectID   string `json:"project_id"`
	ProjectName string `json:"project_name"`
	Version     string `json:"version"`
	Builds      []int  `json:"builds"`
	Error       string `json:"error"`
}

type Server

type Server struct {
	MaxMemory       int      `json:"max_memory"`
	MinMemory       int      `json:"min_memory"`
	AnnounceMessage string   `json:"announce_message"`
	RestartTime     []string `json:"restart_time"`
}

Jump to

Keyboard shortcuts

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