p2p

package
v0.0.0-...-e1789b5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DMs []DM

Functions

func EventQueryHandler

func EventQueryHandler(s network.Stream)

func SendDM

func SendDM(ctx context.Context, ipfscore ipfs.IPFSCore, apikey string, _did string, senderdid string, text string) error

func SetDMStreamHandler

func SetDMStreamHandler(ipfscore ipfs.IPFSCore, apikey string)

Types

type DM

type DM struct {
	Did     string
	Message string
	Time    time.Time
}

type Message

type Message struct {
	Did     string
	Content string
	Time    time.Time
	Topic   string
	Read    bool
}

Jump to

Keyboard shortcuts

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