beater

package
v0.0.0-...-93685a4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleWrapper

func HandleWrapper(s *Server, fn HandleFunc) httprouter.Handle

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

Creates beater

func Run

func Run(auth TokenAuth, events chan *common.MapStr) error

Types

type HapiMessage

type HapiMessage struct {
	Host   string `json:"host"`
	Schema string `json:"schema"`
	//Timestamp time.Time        `json:"timeStamp"`
	Events []*common.MapStr `json"events"`
}

func (*HapiMessage) UnmarshalJSON

func (m *HapiMessage) UnmarshalJSON(raw []byte) error

type HttpBeat

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

func (*HttpBeat) Run

func (bt *HttpBeat) Run(b *beat.Beat) (err error)

func (*HttpBeat) Stop

func (bt *HttpBeat) Stop()

type Server

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

func (*Server) Events

type TokenAuth

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

func (TokenAuth) Enabled

func (a TokenAuth) Enabled() bool

func (TokenAuth) Verify

func (a TokenAuth) Verify(req *http.Request) bool

Jump to

Keyboard shortcuts

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