v1

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelsFromCacheOrWeb

func GetModelsFromCacheOrWeb(forceRefresh bool) syno.Models

GetModelsFromCacheOrWeb gets packages from cache Or gets them from filesystem and populate cache

func GetPackagesFromCacheOrFileSystem

func GetPackagesFromCacheOrFileSystem(r *http.Request, paramLanguage string, forceRefresh bool) (syno.Packages, error)

GetPackagesFromCacheOrFileSystem gets packages from cache Or gets them from filesystem and populate cache

func RouteModels

func RouteModels(w http.ResponseWriter, r *http.Request)

RouteModels displays synology models

func RoutePackage

func RoutePackage(w http.ResponseWriter, r *http.Request)

RoutePackage serves a single packages in JSON format This route is not meant to serve packages to a syno

func RoutePackages

func RoutePackages(w http.ResponseWriter, r *http.Request)

RoutePackages serves all available packages in JSON format This route is not meant to serve packages to a syno

func RouteSynofficial

func RouteSynofficial(w http.ResponseWriter, r *http.Request)

RouteSynofficial serves packages in Syno compatible JSON format This route is meant to serve packages to a Syno emulating the official Synology package repository route. To use this route, add an entry pointing to this server for pkgautoupdate.synology.com in your Syno's host file

func RouteSynology

func RouteSynology(w http.ResponseWriter, r *http.Request)

RouteSynology serves packages in Syno compatible JSON format This route is meant to serve packages to a Syno

Types

This section is empty.

Jump to

Keyboard shortcuts

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