Documentation
¶
Index ¶
- Variables
- func BinderHdl(typ Types) uintptr
- func CountClientConnection(t Types, client string, port int, path string)
- func CountIncomingMessage(t Types, client string, port int, path string)
- func CountParsingError(t Types, client string, parserName string)
- func InitRegistry()
- func LoggerHdl(typ Types) uintptr
- func Name(t Types, cfnd bool) (string, error)
- type BaseService
- func (s *BaseService) AddConnection(conn io.Closer)
- func (s *BaseService) ClearConnections()
- func (s *BaseService) CloseConnections()
- func (s *BaseService) Init()
- func (s *BaseService) LockStatus()
- func (s *BaseService) RemoveConnection(conn io.Closer)
- func (s *BaseService) SetConf(pc []conf.ParserConfig, queueSize uint64)
- func (s *BaseService) UnlockStatus()
- type HandleType
- type Provider
- type ProviderEnv
- type Reporter
- type ServiceHandle
- type Types
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientConnectionCounter *prometheus.CounterVec
View Source
var ErrNotFound = eerrors.New("not found")
View Source
var Handles []ServiceHandle
View Source
var HandlesMap map[ServiceHandle]uintptr
View Source
var INFOS = []byte("infos")
View Source
var IncomingMsgsCounter *prometheus.CounterVec
View Source
var Names2Types = map[string]Types{ "skewer-tcp": TCP, "skewer-udp": UDP, "skewer-relp": RELP, "skewer-directrelp": DirectRELP, "skewer-journal": Journal, "skewer-store": Store, "skewer-accounting": Accounting, "skewer-kafkasource": KafkaSource, "skewer-conf": Configuration, "skewer-graylog": Graylog, "skewer-files": Filesystem, "skewer-httpserver": HTTPServer, "skewer-macos": MacOS, }
View Source
var Once sync.Once
View Source
var ParsingErrorCounter *prometheus.CounterVec
View Source
var Registry *prometheus.Registry
View Source
var SP = []byte(" ")
View Source
var SUCC = []byte("SUCCESS")
View Source
var SYSLOG = []byte("syslog")
View Source
var Types2ConfinedNames map[Types]string
View Source
var Types2Names map[Types]string
Functions ¶
func CountClientConnection ¶
func CountIncomingMessage ¶
func CountParsingError ¶
func InitRegistry ¶
func InitRegistry()
Types ¶
type BaseService ¶
type BaseService struct { ParserConfigs []conf.ParserConfig Logger log15.Logger Binder binder.Client UnixSocketPaths []string Connections map[io.Closer]bool QueueSize uint64 // contains filtered or unexported fields }
func (*BaseService) AddConnection ¶
func (s *BaseService) AddConnection(conn io.Closer)
func (*BaseService) ClearConnections ¶
func (s *BaseService) ClearConnections()
func (*BaseService) CloseConnections ¶
func (s *BaseService) CloseConnections()
func (*BaseService) Init ¶
func (s *BaseService) Init()
func (*BaseService) LockStatus ¶
func (s *BaseService) LockStatus()
func (*BaseService) RemoveConnection ¶
func (s *BaseService) RemoveConnection(conn io.Closer)
func (*BaseService) SetConf ¶
func (s *BaseService) SetConf(pc []conf.ParserConfig, queueSize uint64)
func (*BaseService) UnlockStatus ¶
func (s *BaseService) UnlockStatus()
type Provider ¶
type Provider interface { Start() ([]model.ListenerInfo, error) Stop() Shutdown() Gather() ([]*dto.MetricFamily, error) FatalError() chan struct{} Type() Types SetConf(c conf.BaseConfig) }
type ProviderEnv ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is used by plugins to report new syslog messages to the controller.
func NewReporter ¶
NewReporter creates a reporter.
func (*Reporter) Report ¶
func (s *Reporter) Report(infos []model.ListenerInfo) error
Report reports information about the actual listening ports to the controller.
func (*Reporter) SetSecret ¶
func (s *Reporter) SetSecret(secret *memguard.LockedBuffer)
type ServiceHandle ¶
type ServiceHandle struct { Service string Type HandleType }
Click to show internal directories.
Click to hide internal directories.