coinbase

package
v0.0.0-...-b399be2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// used to authentify with the coinbase API
	KeyID      string `toml:"key_id"`
	Passphrase string `toml:"passphrase"`
	Secret     string `toml:"secret"`
	// how often do we call the coinbase oracle API
	Frequency time.Duration `toml:"frequency"`
}

Config the configuration used to connect with the coinbase API

type Worker

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

func New

func New(cfg Config) *Worker

New instantiate a new coinbase worker

func (*Worker) Pull

func (p *Worker) Pull() ([]byte, error)

Pull will call the coinbase oracle API and return the last updates available

Jump to

Keyboard shortcuts

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