rest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	ErrorCode int    `json:"error_code"`
	Message   string `json:"message"`
}

HTTPError data model for http error

type Handler

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

Handler handles http rest requests

func CreateHandler

func CreateHandler(l *infra.Logger) *Handler

CreateHandler create a new http rest handler

func (*Handler) GetRouter

func (h *Handler) GetRouter() *mux.Router

GetRouter returns the router

func (*Handler) NewHealthCheckHandler

func (h *Handler) NewHealthCheckHandler()

NewHealthCheckHandler add route for healthcheck

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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