Documentation ¶
Index ¶
Constants ¶
View Source
const ( EntBucketHeader = "X-ent-bucket" EntOriginHeader = "X-ent-origin" EntTimestampHeader = "X-ent-timestamp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GelfConfig GelfConfig `yaml:"gelf"`
}
func GetDefaultConfig ¶
func GetDefaultConfig() Config
type GelfConfig ¶
type GelfConfig struct {
Address string `yaml:"address"`
}
type GelfMessage ¶
type GelfMessage struct { Version string Timestamp float64 Host string ShortMessage string FullMessage string Level int Facility string Additional map[string]interface{} }
func (*GelfMessage) GetBucket ¶
func (gm *GelfMessage) GetBucket() string
func (*GelfMessage) GetTimestamp ¶
func (gm *GelfMessage) GetTimestamp() int64
type GelfTcpInput ¶
type GelfTcpInput struct {
// contains filtered or unexported fields
}
func NewGelfTcpInput ¶
func NewGelfTcpInput(config GelfConfig, processor Processor) (*GelfTcpInput, error)
type HttpInput ¶
type HttpInput struct {
// contains filtered or unexported fields
}
func NewHttpInput ¶
Click to show internal directories.
Click to hide internal directories.