Documentation ¶
Index ¶
- Constants
- func History(history dispatch.History, log *logger.UPPLogger) func(w http.ResponseWriter, r *http.Request)
- func Stats(provider clientsProvider, log *logger.UPPLogger) func(w http.ResponseWriter, r *http.Request)
- type HealthCheck
- type KafkaConsumer
- type KeyErr
- type KeyValidator
- type RequestStatusFn
- type SubHandler
Constants ¶
View Source
const ( HeartbeatMsg = "[]" ClientAdrKey = "X-Forwarded-For" )
View Source
const APIKeyHeaderField = "X-Api-Key"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthCheck ¶
type HealthCheck struct { StatusFunc RequestStatusFn // contains filtered or unexported fields }
func NewHealthCheck ¶
func NewHealthCheck(kafkaConsumer KafkaConsumer, apiGatewayGTGAddress string, statusFunc RequestStatusFn) *HealthCheck
func (*HealthCheck) GTG ¶
func (h *HealthCheck) GTG() gtg.Status
func (*HealthCheck) Health ¶
func (h *HealthCheck) Health() func(w http.ResponseWriter, r *http.Request)
type KafkaConsumer ¶
type KafkaConsumer interface {
ConnectivityCheck() error
}
type KeyValidator ¶ added in v4.1.2
type KeyValidator struct { APIGatewayURL string // contains filtered or unexported fields }
func NewKeyValidator ¶ added in v4.1.2
type RequestStatusFn ¶ added in v4.2.1
type SubHandler ¶ added in v4.1.2
type SubHandler struct {
// contains filtered or unexported fields
}
SubHandler manages subscription requests
func NewSubHandler ¶ added in v4.1.2
func NewSubHandler(n notifier, validator keyValidator, shutdown onShutdown, heartbeatPeriod time.Duration, log *logger.UPPLogger) *SubHandler
func (*SubHandler) HandleSubscription ¶ added in v4.1.2
func (h *SubHandler) HandleSubscription(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.