frontend

package
v0.0.0-...-fa6ae4b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigOptions

type ConfigOptions struct {
	FrontendHostPort string
	AuthSecrets      auth.ConfigOptions
	Email            email.ConfigOptions
}

ConfigOptions provides all config options frontend service needs.

type Server

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

Server implements jaeger-demo-frontend service

func NewServer

func NewServer(
	logger *zap.SugaredLogger,
	tracer opentracing.Tracer,
	cache cache.Cache,
	db database.Database,
	storage storage.S3Client,
	config ConfigOptions,
) *Server

NewServer creates a new frontend.Server

func (*Server) Middleware

func (s *Server) Middleware(next http.Handler) http.Handler

Middleware implements mux.Middleware. It's a general recovery middleware to catch all panics in every route.

func (*Server) Run

func (s *Server) Run() error

Run starts the frontend server

Jump to

Keyboard shortcuts

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