Documentation ¶
Index ¶
- Constants
- Variables
- func Discover(ctx context.Context, h host.Host, kdht *dht.IpfsDHT, rendezvous string, ...)
- func ProcessEventsReceivedFromOtherNodes[PayloadData any](payload *PayloadData, fromPubSubChannel *Channel, mainCtx *context.Context, ...)
- func PublishChannelEventToNetwork(channelPool chan *entities.Event, pubsubChannel *Channel, ...)
- func Run(mainCtx *context.Context)
- type Channel
Constants ¶
View Source
const ( AuthorizationChannel string = "ml-authorization-channel" TopicChannel string = "ml-topic-channel" SubnetChannel string = "ml-sub-network-channel" WalletChannel string = "ml-wallet-channel" MessageChannel string = "ml-message-channel" SubscriptionChannel = "ml-subscription-channel" // UnSubscribeChannel = "ml-unsubscribe-channel" // ApproveSubscriptionChannel = "ml-approve-subscription-channel" BatchChannel = "ml-batch-channel" DeliveryProofChannel = "ml-delivery-proof" )
View Source
const DiscoveryServiceTag = "ml-network"
Variables ¶
View Source
var PeerPubKeys = make(map[peer.ID][]byte)
View Source
var PeerStreams = make(map[string]peer.ID)
Functions ¶
Types ¶
type Channel ¶
type Channel struct { // Messages is a channel of messages received from other peers in the chat channel Messages chan entities.PubSubMessage Ctx context.Context Topic *pubsub.Topic ChannelName string ID peer.ID Wallet string // contains filtered or unexported fields }
func JoinChannel ¶
Click to show internal directories.
Click to hide internal directories.