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.Staking) (*Distributor, error)
NewDistributor creates a new distributor.
func (*Distributor) DistributeDecentralizedData ¶ added in v0.5.19
func (d *Distributor) DistributeDecentralizedData(ctx context.Context, requestType string, request interface{}, params url.Values, workers, networks []string) ([]byte, error)
DistributeDecentralizedData distributes decentralized 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.