reportrouter

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultParentGoneGrace = 3 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentSupervisor

type AgentSupervisor interface {
	OfferToSupervisingAgent(ctx context.Context, ev missionservice.AttentionAskedEvent) error
}

type DeliveryMarker

type DeliveryMarker interface {
	MarkDelivered(ctx context.Context, missionID, reportID string) error
	WasDelivered(ctx context.Context, missionID, reportID string) (bool, error)
}

type Deps

type Deps struct {
	Bus             Subscriber
	Sessions        SessionDeliverer
	Inbox           InboxWriter
	Tracker         libtracker.ActivityTracker
	AgentSupervisor AgentSupervisor
	Marker          DeliveryMarker
	// ParentGoneGrace: 0 means DefaultParentGoneGrace; negative means no wait.
	ParentGoneGrace time.Duration
}

type InboxWriter

type InboxWriter interface {
	Add(ctx context.Context, item *operatorinbox.Item) error
}

type Router

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

func New

func New(deps Deps) (*Router, error)

func (*Router) Start

func (r *Router) Start(ctx context.Context) (func(), error)

type SessionDeliverer

type SessionDeliverer interface {
	DeliverToSession(ctx context.Context, sessionID libacp.SessionID, n libacp.SessionNotification) error
}

type Subscriber

type Subscriber interface {
	Stream(ctx context.Context, subject string, ch chan<- []byte) (libbus.Subscription, error)
}

Jump to

Keyboard shortcuts

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