Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthStatus ¶
type Server ¶
type Server struct { Broker *broker.Broker // configuration from .env Config cmd.Config // handler for errors processing ErrorsHandler errorshandler.Handler // handler for release processing ReleaseHandler releasehandler.Handler RedisClient *redis.RedisClient AccountsMongoDBClient *accounts.AccountsMongoDBClient BlacklistThreshold int NotifyURL string }
Server represents fasthttp server
func New ¶
func New(configuration cmd.Config, brokerClient *broker.Broker, redisClient *redis.RedisClient, accountsMongoDBClient *accounts.AccountsMongoDBClient, threshold int, notifyURL string) *Server
New creates new server and initiates it with link to the broker and copy of configuration parameters
func (*Server) HandleHealth ¶
func (s *Server) HandleHealth(ctx *fasthttp.RequestCtx)
HandleHealth handles health statuses of redis, rabbitmq and mongodb
func (*Server) UpdateBlacklist ¶
Click to show internal directories.
Click to hide internal directories.