server

package
v0.0.0-...-8a61a87 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Status string
}

Response message

type Server

type Server struct {
	Service service.Services
}

Server defined structure

func NewServer

func NewServer(service service.Services) *Server

NewServer returns a new instance of the Server structure

func (*Server) DeploymentStatusHandler

func (s *Server) DeploymentStatusHandler(w http.ResponseWriter, r *http.Request)

DeploymentStatusHandler returns the current state of the service

func (*Server) HealthHandler

func (s *Server) HealthHandler(w http.ResponseWriter, req *http.Request)

HealthHandler is used for health checks

func (*Server) Run

func (s *Server) Run()

Run bootstrap the server

func (*Server) ServiceStatusHandler

func (s *Server) ServiceStatusHandler(w http.ResponseWriter, r *http.Request)

ServiceStatusHandler returns the current state of the service

Jump to

Keyboard shortcuts

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