Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkerConnections ¶
type WorkerConnections struct {
// contains filtered or unexported fields
}
WorkerConnections is connection controller for worker
func NewWorkerConnections ¶
func NewWorkerConnections(id, address, network, chainID, version string) *WorkerConnections
NewWorkerConnections is WorkerConnections constructor
func (*WorkerConnections) AddManager ¶
func (wc *WorkerConnections) AddManager(managerAddress string)
AddManager dynamically adds manager to the list
func (*WorkerConnections) RemoveManager ¶
func (wc *WorkerConnections) RemoveManager(managerAddress string)
RemoveManager dynamically removes manager to the list
type WorkerInfoConnectivity ¶
type WorkerResponse ¶
type WorkerResponse struct { ID string `json:"id"` Network string `json:"network"` ChainID string `json:"chain_id"` Connectivity WorkerInfoConnectivity `json:"connectivity"` }
Click to show internal directories.
Click to hide internal directories.