transactional

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IntakePath is the path for the intake route on the receiver API
	IntakePath = "intake"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IntakePayload

type IntakePayload struct {
	InternalHostname string                     `json:"internalHostname"`
	Topologies       []topology.Topology        `json:"topologies"`
	Health           []health.Health            `json:"health"`
	Metrics          []interface{}              `json:"metrics"`
	Events           map[string][]metrics.Event `json:"events"`
}

IntakePayload is a Go representation of the Receiver Intake structure

func NewIntakePayload

func NewIntakePayload() IntakePayload

NewIntakePayload returns a IntakePayload with default values

func (*IntakePayload) EqualDataPayload

func (ip *IntakePayload) EqualDataPayload(ip2 IntakePayload) bool

EqualDataPayload compares the topology, health and metrics of two IntakePayloads and returns a bool indicating whether the intake payloads are equal

func (*IntakePayload) JSONString

func (ip *IntakePayload) JSONString() string

JSONString returns a JSON string of the Component

type PayloadTransaction

type PayloadTransaction struct {
	ActionID             string
	CompletedTransaction bool
}

PayloadTransaction is used to keep track of a given actionID and completion status of a transaction when submitting payloads

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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