server

package
v0.0.0-...-f7b9b20 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SERVER string = "httpserver"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	MySql             *mysql.MySqlDatabase
	MySqlOtelEnricher *otelmysql.MySqlEnricher

	Redis             *redis.RedisDatabase
	RedisOtelEnricher *otelredis.RedisEnricher
	// contains filtered or unexported fields
}

func New

func New(
	log *logger.Logger,
	mdb *mysql.MySqlDatabase,
	rdb *redis.RedisDatabase,
) *Server

Create a HTTP server instance

func (*Server) Livez

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

Liveness

func (*Server) Readyz

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

Readiness

func (*Server) ServerHandler

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

Server handler

Jump to

Keyboard shortcuts

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