controllers

package
v0.0.0-...-5a017d6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter() *mux.Router

NewRouter ...

Types

type Server

type Server struct {
	App app.App
}

Server is a struct

func (*Server) HealthCheck

func (server *Server) HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck checks api health status

func (*Server) Home

func (server *Server) Home(w http.ResponseWriter, r *http.Request)

Home Controller

func (*Server) Initialize

func (server *Server) Initialize() error

Initialize is a method

func (*Server) Run

func (server *Server) Run() error

Run calls listen-and-serve and implements logging handler

Jump to

Keyboard shortcuts

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