p2p

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Task         *types.Task         `json:"task,omitempty"`
	TaskStateLog *types.TaskStateLog `json:"taskStateLog,omitempty"`
}

type HandleSubscriptionMessage

type HandleSubscriptionMessage func(*Data, *pubsub.Topic)

type PubSubs

type PubSubs struct {
	// contains filtered or unexported fields
}

func NewPubSubs

func NewPubSubs(handle HandleSubscriptionMessage, bootNodeMultiaddr string, iotexChainID int) (*PubSubs, error)

func (*PubSubs) Add

func (p *PubSubs) Add(projectID uint64) error

func (*PubSubs) Delete

func (p *PubSubs) Delete(projectID uint64)

func (*PubSubs) Publish

func (p *PubSubs) Publish(projectID uint64, data *Data) error

Jump to

Keyboard shortcuts

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