handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 15 Imported by: 0

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 Logger

type Logger interface {
	Debugf(format string, args ...interface{})
}

type PHLogger

type PHLogger struct {
	// contains filtered or unexported fields
}

func NewPHLogger

func NewPHLogger(storer logging.Storer, log Logger) (*PHLogger, error)

func (*PHLogger) RFC5424QueueName

func (l *PHLogger) RFC5424QueueName() string

func (*PHLogger) RFC5424Worker

func (h *PHLogger) RFC5424Worker(deliveries <-chan amqp.Delivery, done <-chan bool)

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

Jump to

Keyboard shortcuts

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