cloud_client

package
v0.21.15 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const HEARTBEAT_INTERVAL = 30 * time.Second

How long to wait between heartbeat requests.

View Source
const LONG_POLL_INTERVAL = 5 * time.Second

How long to wait after a failed long poll before trying again.

View Source
const MAIN_GOROUTINE_BUFFER_SIZE = 50

The number of events to buffer in the event channel in the daemon's main goroutine

View Source
const TRACE_BUFFER_SIZE = 10_000

The number of events to buffer for any given trace before dropping incoming events.

Variables

This section is empty.

Functions

func NewRegistrationRequest

func NewRegistrationRequest(clientName string, serviceID akid.ServiceID, activeTraces []akid.LearnSessionID, responseChannel chan<- daemon.ActiveTraceDiff) registrationRequest

func NewTraceEventRequest

func NewTraceEventRequest(clientName string, serviceID akid.ServiceID, traceID akid.LearnSessionID, traceEvents []*TraceEvent, noMoreEvents bool, responseChannel chan<- TraceEventResponse) traceEventRequest

func Run

func Run(daemonName, host string, clientID akid.ClientID, plugins []plugin.AkitaPlugin) chan<- Event

Instantiates a cloud client and starts its main goroutine. Returns a channel on which requests to the client can be made.

Types

type Event

type Event interface {
	// contains filtered or unexported methods
}

An event that is handled by the main goroutine for the cloud client.

type TraceEvent

type TraceEvent = har_loader.CustomHAREntry

type TraceEventDetails

type TraceEventDetails struct {
	// How many were dropped because the queue was full.
	Drops int `json:"drops"`
}

Provides details on the processing status of trace events.

type TraceEventResponse

type TraceEventResponse struct {
	HTTPStatus int
	Body       traceEventResponseBody
}

A response to a TraceEventRequest.

Jump to

Keyboard shortcuts

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