flowgen

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context) error

Types

type Job

type Job struct {
	// Name is the friendly name of the job
	Name string

	// Run is the function to run
	Run RunFunc

	// Cadence is intrerval at which to run the job
	Cadence time.Duration

	// Spend is spend this job uses on one run (exluding gas)
	Spend Spend
}

type RunFunc

type RunFunc func(context.Context, Spend) error

type Spend

type Spend map[tokens.Token]*big.Int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳