evolve

package
v0.2.198 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*task.Task
}

func NewController

func NewController(config *config.Config) (self *Controller, err error)

type Downloader

type Downloader struct {
	*task.Task

	Output chan *model.ContractSource
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader(config *config.Config) (self *Downloader)

func (*Downloader) WithClient

func (self *Downloader) WithClient(client *arweave.Client) *Downloader

func (*Downloader) WithInputChannel

func (self *Downloader) WithInputChannel(v chan string) *Downloader

func (*Downloader) WithMonitor

func (self *Downloader) WithMonitor(monitor monitoring.Monitor) *Downloader

type Poller

type Poller struct {
	*task.Task

	// Evolve to be sent out
	Output chan string
	// contains filtered or unexported fields
}

Periodically gets new evolved contract sources which are not yet in the db

func NewPoller

func NewPoller(config *config.Config) (self *Poller)

func (*Poller) WithDB

func (self *Poller) WithDB(db *gorm.DB) *Poller

func (*Poller) WithMonitor

func (self *Poller) WithMonitor(monitor monitoring.Monitor) *Poller

type Store

type Store struct {
	*task.Hole[*model.ContractSource]
	// contains filtered or unexported fields
}

func NewStore

func NewStore(config *config.Config) (self *Store)

func (*Store) WithDB

func (self *Store) WithDB(db *gorm.DB) *Store

func (*Store) WithInputChannel

func (self *Store) WithInputChannel(input chan *model.ContractSource) *Store

func (*Store) WithMonitor

func (self *Store) WithMonitor(monitor monitoring.Monitor) *Store

Jump to

Keyboard shortcuts

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