routes

package
v0.0.0-...-003ff6d Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(router *mux.Router, log log.Logger)

RegisterRoutes register all endpoint handler in the router

Types

type HealthRoute

type HealthRoute struct {
	// contains filtered or unexported fields
}

HealthRoute http endpoint object for return server status

func InitHealthRoute

func InitHealthRoute(log log.Logger) *HealthRoute

InitHealthRoute returns new HealthRoute object

func (*HealthRoute) Handler

func (e *HealthRoute) Handler(w http.ResponseWriter, _ *http.Request)

Handler http handler for HealthRoute

Jump to

Keyboard shortcuts

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