collectors

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry(st *store.Store) *Registry

func (*Registry) Collect

func (r *Registry) Collect(ctx context.Context, slug string, credentials map[string]string) (store.EarningsRecord, error)

func (*Registry) Supports added in v0.7.0

func (r *Registry) Supports(slug string) bool

Supports reports whether slug has a native collector wired up. The scheduler uses it to skip deployed services that have no automated collector rather than persisting a spurious "not ported yet" error row for them on every cycle.

type Result

type Result struct {
	Platform string
	Balance  float64
	Currency string
	Error    string
}

Jump to

Keyboard shortcuts

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