Versions in this module Expand all Collapse all v0 v0.1.2 Jun 23, 2020 Changes in this version + func Priority(s string) (syslog.Priority, error) + func RFC3164FormatterNoPid(p syslog.Priority, hostname, tag, content string) string + type Config struct + Annotations []string + Custom custom + Facility string + Labels []string + Mode string + Severity string + func LoadConfig(filename string) (*Config, error) + type Server struct + func New(cfg *ServerCfg) (*Server, error) + func (s *Server) Close() + func (s *Server) HandleAlert(w http.ResponseWriter, req *http.Request) + func (s *Server) ListenAndServe() + func (s *Server) ShowVersion(w http.ResponseWriter, req *http.Request) + type ServerCfg struct + Config *Config + Hostname string + ListenAddr string + Network string + NoPid bool + SyslogAddr string + Tag string + Timeout int