http

package
v0.0.0-...-270babc Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server struct

func New

func New(address string, xtestSvc *xtest.Service) *Server

New HTTP server

func (*Server) NSQ

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

NSQ test NSQ connection

func (*Server) Ping

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

Ping pong

func (*Server) Postgres

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

Postgres test postgresql db connection

func (*Server) Redis

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

Redis test redis connection

func (*Server) Run

func (s *Server) Run() error

Run HTTP server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown HTTP server

Jump to

Keyboard shortcuts

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