chatterino

package
v0.0.0-...-6d36bb5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(gCtx global.Context) rest.Route

Types

type Route

type Route struct {
	Ctx global.Context
}

func (*Route) Config

func (r *Route) Config() rest.RouteConfig

Config implements rest.Route

func (*Route) Handler

func (r *Route) Handler(ctx *rest.Ctx) errors.APIError

Get Chatterino Update @Summary Auto update for chatterino @Description Allows chatterino clients to auto update @Tags chatterino @Param platform path string true "The platform such as win, linux, macos" @Param branch path string true "The branch such as stable or beta" @Produce json @Success 200 {object} VersionResult @Router /chatterino/version/{platform}/{branch} [get]

type VersionResult

type VersionResult struct {
	Download         string `json:"download"`
	PortableDownload string `json:"portable_download,omitempty"`
	UpdateExe        string `json:"updateexe,omitempty"`
	Version          string `json:"version"`
}

Jump to

Keyboard shortcuts

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