handler

package
v0.2.10-0...-c697c49 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Port: 3000,
	User: "jpillora",
}

DefaultConfig for an installer handler

Functions

This section is empty.

Types

type Config

type Config struct {
	Port  int    `opts:"help=port, env"`
	User  string `opts:"help=default user when not provided in URL, env"`
	Token string `opts:"help=github api token, env=GH_TOKEN"`
}

Config installer handler

type Handler

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

Handler serves install scripts using Github releases

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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