ghost

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerTag = "GHOST"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Gofer is an instance of the gofer.Gofer which will be used to fetch
	// prices.
	Gofer gofer.Gofer
	// Signer is an instance of the ethereum.Signer which will be used to
	// sign prices.
	Signer ethereum.Signer
	// Transport is a implementation of transport used to send prices to
	// relayers.
	Transport transport.Transport
	// Interval describes how often we should send prices to the network.
	Interval time.Duration
	// Logger is a current logger interface used by the Ghost. The Logger
	// helps to monitor asynchronous processes.
	Logger log.Logger
	// Pairs is a list supported pairs.
	Pairs []string
}

type ErrUnableToFindAsset

type ErrUnableToFindAsset struct {
	AssetName string
}

func (ErrUnableToFindAsset) Error

func (e ErrUnableToFindAsset) Error() string

type Ghost

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

func NewGhost

func NewGhost(ctx context.Context, cfg Config) (*Ghost, error)

func (*Ghost) Start

func (g *Ghost) Start() error

func (*Ghost) Wait added in v0.2.0

func (g *Ghost) Wait()

Jump to

Keyboard shortcuts

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