Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Exchange = "logproxy" RoutingKey = "new.rfc5424" )
Functions ¶
func VersionHandler ¶
func VersionHandler(version string) echo.HandlerFunc
Types ¶
type DHPLogData ¶
type DHPLogData struct {
Message string `json:"message"`
}
type DHPLogMessage ¶
type DHPLogMessage struct {
Category string `json:"cat"`
EventID string `json:"evt"`
ApplicationVersion string `json:"ver"`
Component string `json:"cmp"`
ApplicationName string `json:"app"`
ApplicationInstance string `json:"inst"`
ServerName string `json:"srv"`
TransactionID string `json:"trns"`
ServiceName string `json:"service"`
LogTime string `json:"time"`
OriginatingUser string `json:"usr"`
Severity string `json:"sev"`
LogData DHPLogData `json:"val"`
}
type HealthHandler ¶
type HealthHandler struct {
}
func (HealthHandler) Handler ¶
func (h HealthHandler) Handler() echo.HandlerFunc
type PHLogger ¶
type PHLogger struct {
// contains filtered or unexported fields
}
func (*PHLogger) RFC5424QueueName ¶
type SyslogHandler ¶
type SyslogHandler struct {
// contains filtered or unexported fields
}
func NewSyslogHandler ¶
func NewSyslogHandler(token string, producer rabbitmq.Producer) (*SyslogHandler, error)
func (*SyslogHandler) Handler ¶
func (h *SyslogHandler) Handler() echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.