api

package
v0.0.0-...-4b0e344 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routes = [...]Route{
	{
		"GetFastestMirror",
		"GET",
		"/fastest-mirror",
		handlers.GetFastestMirror,
	},
}

Functions

func NewMuxRouter

func NewMuxRouter() *mux.Router

func RunServer

func RunServer(port string) error

Types

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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