builtin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package builtin lists the workers that ship with the program, so the processes that run them (dexafix serve worker, and the single-process mode) choose providers by name without knowing any of them. A new provider is one more line in providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

Names lists the providers, sorted.

func Register

func Register(r *runner.Runner, names []string, o Options) error

Register adds the handlers of the named providers to r. An empty list means all of them.

Types

type Options

type Options struct {
	// HTTPClient is used for outside calls; nil gives each provider its own default.
	HTTPClient *http.Client
	// WithingsAPIBase points the Withings worker at another address.
	WithingsAPIBase string
	// StrengthLevelBase points the Strength Level worker at another address.
	StrengthLevelBase string
}

Options are what tests change; production uses the zero value.

Jump to

Keyboard shortcuts

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