Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreSliceElementsIdentical ¶
AreSliceElementsIdentical checks if the elements of two string slices are identical.
func IntersectUnique ¶
IntersectUnique returns the unique common elements between two string slices.
Types ¶
type Distributor ¶
type Distributor struct {
// contains filtered or unexported fields
}
func NewDistributor ¶
func NewDistributor(ctx context.Context, database database.Client, cache cache.Client, httpClient httputil.Client, stakingContract *l2.StakingV2MulticallClient, networkParamsContract *l2.NetworkParams, txManager *txmgr.SimpleTxManager, settlerConfig *config.Settler, chainID *big.Int) (*Distributor, error)
NewDistributor creates a new distributor.
func (*Distributor) DistributeData ¶ added in v0.8.0
func (d *Distributor) DistributeData(ctx context.Context, requestType, component string, request interface{}, params url.Values, workers, networks []string) ([]byte, error)
DistributeData distributes requests to qualified Nodes.
func (*Distributor) DistributeRSSHubData ¶
DistributeRSSHubData distributes RSSHub requests to qualified Nodes.
type NetworkWorkersMap ¶
type WorkerNetworksMap ¶
Click to show internal directories.
Click to hide internal directories.