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) 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
Click to show internal directories.
Click to hide internal directories.