handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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