routes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Router *chi.Mux

Router provides a chi router for registration of routes.

View Source
var Routes = []func(*chi.Mux){
	Index,
	Hello,
	IP,
}

Routes holds all routes to be registered to Router.

Functions

func Hello

func Hello(r *chi.Mux)

Hello greets a given name.

func IP

func IP(r *chi.Mux)

IP returns the server's IP address

func Index

func Index(r *chi.Mux)

Index handles requests to the root route

Types

This section is empty.

Jump to

Keyboard shortcuts

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