handler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToSemver added in v1.0.1

func ToSemver(version string) string

ToSemver convert to semver

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles requests of clients.

func NewHandler

func NewHandler(conf *config.Config, cache *cache.GithubCache) *Handler

NewHandler returns a handler instance.

func (*Handler) Download

func (h *Handler) Download(c *gin.Context)

Download reponses the download location url for the platform parsed from user agent.

func (*Handler) DownloadPlatform

func (h *Handler) DownloadPlatform(c *gin.Context)

DownloadPlatform get download with specific platform.

func (*Handler) Overview

func (h *Handler) Overview(c *gin.Context)

Overview responses information of the latest version.

func (*Handler) Releases

func (h *Handler) Releases(c *gin.Context)

Releases responses Releases text.

func (*Handler) Update

func (h *Handler) Update(c *gin.Context)

Update handles checking update request.

func (*Handler) UpdateLatestYml added in v1.0.1

func (h *Handler) UpdateLatestYml(c *gin.Context)

UpdateLatestYml responses latest.yml

Jump to

Keyboard shortcuts

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