infra

package
v0.0.0-...-44471cb Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerContext

type ServerContext struct {
	Router *chi.Mux
	NRApp  *newrelic.Application
}

func New

func New() *ServerContext

func (*ServerContext) Mount

func (ctx *ServerContext) Mount(path string, handler http.Handler)

func (*ServerContext) Register

func (ctx *ServerContext) Register(path string, handle func(http.ResponseWriter, *http.Request), method string)

func (*ServerContext) StartServer

func (ctx *ServerContext) StartServer(address string)

StartServer starts HTTP server

type StructuredLogger

type StructuredLogger struct {
	Logger *logrus.Logger
}

Jump to

Keyboard shortcuts

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