source

package
v0.0.0-...-918653d Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRetry   = 5
	DefaultTimeout = 20 * time.Second
	DefaultURL     = "https://us-east4-at-devops-inhouse.cloudfunctions.net/be-interview-env-datasource-0e709f7f"
)

Variables

This section is empty.

Functions

func New

func New(cfg *Config) *client

Types

type Config

type Config struct {
	Retry   int
	Timeout time.Duration
	URL     *url.URL

	Trace bool
}

type Source

type Source interface {
	Check(ctx context.Context) error
	Generate(ctx context.Context, n int) ([]ledger.Token, error)
}

Jump to

Keyboard shortcuts

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