Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher gets new jobs and passes them onto works. It also initializes new workers when needed
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job encapsulates job description and instructions to perform
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager makes sure that all blockchain requests are executed accordingly. It controls the jobs, requests and data
func NewManager ¶
func (*Manager) GetChains ¶
GetChains loops through all workers and gets their chain details. The reason why we don't use the file is because chains could've been added at runtime
func (*Manager) SetUpdateChan ¶
func (m *Manager) SetUpdateChan(c chan models.ChainUpdate)
Click to show internal directories.
Click to hide internal directories.