ghost

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 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 {
	// Pairs is a list supported pairs.
	Pairs []string
	// PriceProvider is an instance of the provider.Provider.
	PriceProvider provider.Provider
	// Signer is an instance of the ethereum.Signer which will be used to
	// sign prices.
	Signer ethereum.Signer
	// Transport is an 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
}

Config is the configuration for the Ghost.

type Ghost

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

func New added in v0.6.0

func New(cfg Config) (*Ghost, error)

func (*Ghost) Start

func (g *Ghost) Start(ctx context.Context) error

func (*Ghost) Wait

func (g *Ghost) Wait() chan error

Wait waits until the context is canceled or until an error occurs.

Jump to

Keyboard shortcuts

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