web

package
v0.0.0-...-3d7a270 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidPlatforms = []string{"osx", "linux32", "linux64", "win32", "win64"}

Functions

func NewListPluginsHandler

func NewListPluginsHandler(plugins PluginsJson, logger io.Writer) http.Handler

Types

type Author

type Author struct {
	Name     string `json:"name"`
	Homepage string `json:"homepage"`
	Contact  string `json:"contact"`
}

type Binary

type Binary struct {
	Platform string `json:"platform"`
	Url      string `json:"url"`
	Checksum string `json:"checksum"`
}

type Plugin

type Plugin struct {
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Version     string    `json:"version"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	Company     string    `json:"company"`
	Authors     []Author  `json:"authors"`
	Homepage    string    `json:"homepage"`
	Binaries    []Binary  `json:"binaries"`
}

type PluginsJson

type PluginsJson struct {
	Plugins []Plugin `json:"plugins"`
}

func (PluginsJson) Len

func (p PluginsJson) Len() int

func (PluginsJson) Less

func (p PluginsJson) Less(i, j int) bool

func (PluginsJson) Swap

func (p PluginsJson) Swap(i, j int)

Jump to

Keyboard shortcuts

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