serveradapter

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: GPL-2.0, GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package serveradapter provides adapter types that bridge the server's activity, alert, and event subsystems to the interfaces consumed by the scanning and manualops packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityAdapter

type ActivityAdapter struct{ A *activity.Log }

ActivityAdapter bridges activity.Log to scanning.ActivityTracker and manualops.ActivityTracker (superset of methods).

func (*ActivityAdapter) End

func (a *ActivityAdapter) End(id string)

func (*ActivityAdapter) Fail

func (a *ActivityAdapter) Fail(id string)

func (*ActivityAdapter) IsCancelled

func (a *ActivityAdapter) IsCancelled(id string) bool

func (*ActivityAdapter) Progress

func (a *ActivityAdapter) Progress(id string, current, total int, msg string)

func (*ActivityAdapter) SetQueued

func (a *ActivityAdapter) SetQueued(id string, queued bool)

func (*ActivityAdapter) Start

func (a *ActivityAdapter) Start(action, detail string, source activity.ActivitySource) string

type AlertAdapter

type AlertAdapter struct{ A *activity.AlertLog }

AlertAdapter bridges activity.AlertLog to scanning.AlertRecorder and activity.WarnRecorder (superset of methods).

func (*AlertAdapter) Record

func (a *AlertAdapter) Record(category, msg string)

func (*AlertAdapter) RecordInfo

func (a *AlertAdapter) RecordInfo(msg string)

func (*AlertAdapter) RecordWarn

func (a *AlertAdapter) RecordWarn(source, msg string)

type ManualEventAdapter

type ManualEventAdapter struct{ E *events.EventBus }

ManualEventAdapter bridges events.EventBus to manualops.EventPublisher.

func (*ManualEventAdapter) PublishCoverageUpdate

func (a *ManualEventAdapter) PublishCoverageUpdate(mediaType api.MediaType, mediaID, language, source, path string)

func (*ManualEventAdapter) PublishNotify

func (a *ManualEventAdapter) PublishNotify(level events.NotifyLevel, text string)

type ScanEventAdapter

type ScanEventAdapter struct{ E *events.EventBus }

ScanEventAdapter bridges events.EventBus to scanning.EventPublisher.

func (*ScanEventAdapter) PublishCoverageUpdate

func (a *ScanEventAdapter) PublishCoverageUpdate(mediaType api.MediaType, mediaID string)

func (*ScanEventAdapter) PublishScanDone

func (a *ScanEventAdapter) PublishScanDone(action, detail string, source activity.ActivitySource, ok bool)

func (*ScanEventAdapter) PublishScanStart

func (a *ScanEventAdapter) PublishScanStart(action, detail string, source activity.ActivitySource)

Jump to

Keyboard shortcuts

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