Documentation
¶
Index ¶
- type Aggregator
- func (a *Aggregator) Apply(report domain.ReportEnvelope) (domain.ReportReceipt, error)
- func (a *Aggregator) ApplyAt(report domain.ReportEnvelope, receivedAt time.Time) (ApplyResult, error)
- func (a *Aggregator) Clone() (*Aggregator, error)
- func (a *Aggregator) HistoryMetadata() domain.HistoryMetadata
- func (a *Aggregator) MarshalState() ([]byte, error)
- func (a *Aggregator) ReplaceWith(candidate *Aggregator) error
- func (a *Aggregator) RestoreState(payload []byte) error
- func (a *Aggregator) Snapshot() domain.Topology
- func (a *Aggregator) Subscribe() (<-chan struct{}, func())
- type ApplyResult
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
func New ¶
func New(options Options) *Aggregator
func (*Aggregator) Apply ¶
func (a *Aggregator) Apply(report domain.ReportEnvelope) (domain.ReportReceipt, error)
func (*Aggregator) ApplyAt ¶
func (a *Aggregator) ApplyAt(report domain.ReportEnvelope, receivedAt time.Time) (ApplyResult, error)
func (*Aggregator) Clone ¶
func (a *Aggregator) Clone() (*Aggregator, error)
func (*Aggregator) HistoryMetadata ¶
func (a *Aggregator) HistoryMetadata() domain.HistoryMetadata
func (*Aggregator) MarshalState ¶
func (a *Aggregator) MarshalState() ([]byte, error)
func (*Aggregator) ReplaceWith ¶
func (a *Aggregator) ReplaceWith(candidate *Aggregator) error
func (*Aggregator) RestoreState ¶
func (a *Aggregator) RestoreState(payload []byte) error
func (*Aggregator) Snapshot ¶
func (a *Aggregator) Snapshot() domain.Topology
func (*Aggregator) Subscribe ¶
func (a *Aggregator) Subscribe() (<-chan struct{}, func())
type ApplyResult ¶
type ApplyResult struct {
Receipt domain.ReportReceipt
Traffic []domain.AcceptedTraffic
PathTransitions []domain.PathTransition
Changed bool
CanonicalStateChanged bool
}
Click to show internal directories.
Click to hide internal directories.