ghost

package
v0.11.0-dev.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.10.0

type Config struct {
	Ghost     feedConfig.Config          `hcl:"ghost,block"`
	Gofer     priceproviderConfig.Config `hcl:"gofer,block"`
	Ethereum  ethereumConfig.Config      `hcl:"ethereum,block"`
	Transport transportConfig.Config     `hcl:"transport,block"`
	Logger    *loggerConfig.Config       `hcl:"logger,block,optional"`

	// HCL fields:
	Remain  hcl.Body        `hcl:",remain"` // To ignore unknown blocks.
	Content hcl.BodyContent `hcl:",content"`
}

Config is the configuration for Lair.

func (*Config) Services added in v0.10.0

func (c *Config) Services(baseLogger log.Logger, noRPC bool) (*Services, error)

Services returns the services configured for Lair.

type Services added in v0.10.0

type Services struct {
	Feed      *feeder.Feeder
	Transport pkgTransport.Transport
	Logger    log.Logger
	// contains filtered or unexported fields
}

Services returns the services that are configured from the Config struct.

func (*Services) Start added in v0.10.0

func (s *Services) Start(ctx context.Context) error

Start implements the supervisor.Service interface.

func (*Services) Wait added in v0.10.0

func (s *Services) Wait() <-chan error

Wait implements the supervisor.Service interface.

Jump to

Keyboard shortcuts

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