Documentation
¶
Index ¶
- Constants
- func BackoffInterval(base time.Duration, fails int) time.Duration
- func BoundRetryAfter(d time.Duration) (time.Duration, bool)
- func CheckPollInterval(where string, d time.Duration) error
- func ClassifyItem(it Item) glyph.Severity
- func ClassifyKind(kind string) glyph.Severity
- func ClassifyState(state string) glyph.Severity
- func Clean(s string) string
- func CleanLine(s string) string
- func CleanLines(lines []string) []string
- func CleanMeta(m map[string]string) map[string]string
- func CleanRows(rows [][2]string) [][2]string
- func HTTPClient() *http.Client
- func ParsePollInterval(where, raw string) (time.Duration, error)
- func RetryAfter(hdr http.Header, now time.Time) (time.Duration, bool)
- func WithJitter(d time.Duration) time.Duration
- type ActiveSignal
- type Chip
- type DetailSection
- type Detailer
- type Event
- type Item
- type ItemDetail
- type Scheduled
- type Section
- type Signal
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 ClassifyItem ¶
func ClassifyKind ¶
func ClassifyState ¶ added in v0.1.18
func CleanLines ¶
func HTTPClient ¶
func RetryAfter ¶ added in v0.1.24
Types ¶
type ActiveSignal ¶
type DetailSection ¶
type DetailSection = plugin.DetailSection
func CleanDetailSections ¶
func CleanDetailSections(secs []DetailSection) []DetailSection
type Item ¶
func CleanItems ¶
type ItemDetail ¶
type ItemDetail = plugin.ItemDetail
func CleanDetail ¶
func CleanDetail(d *ItemDetail) *ItemDetail
type Section ¶
func CleanSection ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.