signals

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRetryAfter  = time.Hour
	MaxPollBackoff = 15 * time.Minute
)
View Source
const (
	MetaTruncated     = plugin.MetaTruncated
	MetaMore          = plugin.MetaMore
	MetaWireTruncated = "mino.truncated"
	MetaFiled         = "mino.filed"
)
View Source
const (
	HTTPTimeout = 30 * time.Second
)
View Source
const MinPollInterval = stream.MinPollInterval

Variables

This section is empty.

Functions

func BackoffInterval added in v0.1.24

func BackoffInterval(base time.Duration, fails int) time.Duration

func BoundRetryAfter added in v0.1.24

func BoundRetryAfter(d time.Duration) (time.Duration, bool)

func CheckPollInterval

func CheckPollInterval(where string, d time.Duration) error

func ClassifyItem

func ClassifyItem(it Item) glyph.Severity

func ClassifyKind

func ClassifyKind(kind string) glyph.Severity

func ClassifyState added in v0.1.18

func ClassifyState(state string) glyph.Severity

func Clean

func Clean(s string) string

func CleanLine

func CleanLine(s string) string

func CleanLines

func CleanLines(lines []string) []string

func CleanMeta

func CleanMeta(m map[string]string) map[string]string

func CleanRows

func CleanRows(rows [][2]string) [][2]string

func HTTPClient

func HTTPClient() *http.Client

func ParsePollInterval

func ParsePollInterval(where, raw string) (time.Duration, error)

func RetryAfter added in v0.1.24

func RetryAfter(hdr http.Header, now time.Time) (time.Duration, bool)

func WithJitter added in v0.1.24

func WithJitter(d time.Duration) time.Duration

Types

type ActiveSignal

type ActiveSignal = plugin.Stream

type Chip

type Chip = plugin.Chip

func CleanChips

func CleanChips(chips []Chip) []Chip

type DetailSection

type DetailSection = plugin.DetailSection

func CleanDetailSections

func CleanDetailSections(secs []DetailSection) []DetailSection

type Detailer

type Detailer = plugin.Detailer

type Event

type Event = plugin.Event

type Item

type Item = plugin.Item

func CleanItem

func CleanItem(it Item) Item

func CleanItems

func CleanItems(items []Item) []Item

type ItemDetail

type ItemDetail = plugin.ItemDetail

func CleanDetail

func CleanDetail(d *ItemDetail) *ItemDetail

type Scheduled

type Scheduled = plugin.Scheduled

type Section

type Section = plugin.Section

func CleanSection

func CleanSection(s Section) Section

type Signal

type Signal = plugin.Query

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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