cmd

package
v0.0.0-...-2081a44 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = "7893"

DefaultPort is the default port to use if once is not specified by the SERVER_PORT environment variable

Variables

View Source
var DumpableFlag bool
View Source
var GidFlag string
View Source
var LogfilenameFlag string
View Source
var LogjsonFlag bool
View Source
var LoglevelFlag string
View Source
var RootCmd = &cobra.Command{
	Use:   "skewer",
	Short: "skewer is a Syslog server that forwards message to Kafka",
	Long: `skewer is a Syslog server. It implements listening on TCP, UDP, and
RELP. It can also retrieve messages from Journald on Linux. Syslog messages
are forwarded to Kafka. Skewer configuration can be pulled from Consul. Skewer
supports TLS for the Syslog services, for Consul connection and for Kafka
connection.`,
}
View Source
var SyslogFlag bool
View Source
var UidFlag string

Functions

func EchoHandler

func EchoHandler(writer http.ResponseWriter, request *http.Request)

func Execute

func Execute() error

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ExecuteChild

func ExecuteChild() (err error)

ExecuteChild sets up the environment for the serve command and starts it.

Types

type ErrorListener

type ErrorListener struct {
	*antlr.DefaultErrorListener
}

func NewErrorListener

func NewErrorListener() *ErrorListener

func (*ErrorListener) SyntaxError

func (el *ErrorListener) SyntaxError(rec antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)

type ErrorStrategy

type ErrorStrategy struct {
	*antlr.DefaultErrorStrategy
}

func NewErrorStrategy

func NewErrorStrategy() *ErrorStrategy

func (*ErrorStrategy) Sync

func (s *ErrorStrategy) Sync(antlr.Parser)

type Listener

type Listener struct {
	*rfc5424.BaseRFC5424Listener
}

func NewListener

func NewListener() *Listener

func (*Listener) ExitAppname

func (l *Listener) ExitAppname(ctx *rfc5424.AppnameContext)

func (*Listener) ExitStructured

func (l *Listener) ExitStructured(ctx *rfc5424.StructuredContext)

Jump to

Keyboard shortcuts

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