v1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryService

type EntryService interface {
	StoreItem(ctx context.Context, remoteIP string, data []byte) (err error)
	StoreList(ctx context.Context, remoteIP string, data []byte) (err error)
}

type Event

type Event struct {
	Line json.RawMessage `json:"line"`
}

type Message

type Message struct {
	Event Event `json:"event"`
}

type SplunkHandler

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

func NewSplunkHandler

func NewSplunkHandler(
	service EntryService,
	logger tracelog.Logger,
	tracer *tracing.Tracer,
) *SplunkHandler

func (*SplunkHandler) Handler

func (h *SplunkHandler) Handler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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