delete

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(
	p2p *dep2p.DeP2P,
	pubsub *pubsub.DeP2PPubSub,
	db *sqlites.SqliteDB,

	fileID string,
	ownerPriv *ecdsa.PrivateKey,
) error

Delete 删除文件

func HandleFileDeleteRequestPubSub

func HandleFileDeleteRequestPubSub(p2p *dep2p.DeP2P, pubsub *pubsub.DeP2PPubSub, res *streams.RequestMessage)

HandleFileDownloadResponsePubSub 处理文件删除响应的订阅消息

Types

type FileDeleteRequestPayload

type FileDeleteRequestPayload struct {
	FileID     string // 文件的唯一标识
	PubKeyHash []byte // 所有者的私钥
}

文件删除请求

Jump to

Keyboard shortcuts

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