server

package
v0.0.0-...-c2ede47 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(auth middleware.Authenticator, opts ...Option) http.Handler

Types

type GetHealthzResponseEnvelope

type GetHealthzResponseEnvelope struct {
	Ping string `json:"ping"`
}

type Option

type Option func(s *Server)

func WithCapturer

func WithCapturer(capturer trackers.Capturer) Option

func WithErrorSensitivity

func WithErrorSensitivity(sensitivity errawr.ErrorSensitivity) Option

func WithSchemaRegistry

func WithSchemaRegistry(r validation.SchemaRegistry) Option

func WithTrustedProxyHops

func WithTrustedProxyHops(n int) Option

type Server

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

func (*Server) GetHealthz

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

func (*Server) Route

func (s *Server) Route(r *mux.Router)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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