server

package
v0.0.0-...-b22e9ac Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustInitLogger

func MustInitLogger(name string)

func NewServer

func NewServer(listenAddress string, validator validator.ValidatorConfig) *http.Server

Types

type PrometheusHook

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

func NewPrometheusHook

func NewPrometheusHook() *PrometheusHook

func (*PrometheusHook) Fire

func (h *PrometheusHook) Fire(e *log.Entry) error

func (*PrometheusHook) Levels

func (h *PrometheusHook) Levels() []log.Level

type Server

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

func (*Server) HandleValidate

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

Jump to

Keyboard shortcuts

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