Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	OrgID         influxdb.ID
	Endpoint      string
	RequestBytes  int
	ResponseBytes int
	Status        int
}

Event represents the meta data associated with an API request.

type EventRecorder

type EventRecorder interface {
	Record(ctx context.Context, e Event)
}

EventRecorder records meta-data associated with http requests.

type NopEventRecorder

type NopEventRecorder struct{}

NopEventRecorder never records events.

func (*NopEventRecorder) Record

func (n *NopEventRecorder) Record(ctx context.Context, e Event)

Record never records events.

Source Files