gofer

package
v0.22.9-2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Gofer    dataproviderConfig.Config `hcl:"gofer,block"`
	Ethereum *ethereumConfig.Config    `hcl:"ethereum,block,optional"`
	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 Gofer.

func (Config) DefaultEmbeds added in v0.22.1

func (Config) DefaultEmbeds() [][]byte

func (*Config) Services

func (c *Config) Services(baseLogger log.Logger, appName, appVersion string) (pkgSupervisor.Service, error)

Services returns the services configured for Gofer.

type Services

type Services struct {
	DataProvider datapoint.Provider
	Logger       log.Logger
	// contains filtered or unexported fields
}

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

func (*Services) Start

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

Start implements the supervisor.Service interface.

func (*Services) Wait

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