net

package
v0.0.0-...-c57a2f4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OfflineMessagingStorage

type OfflineMessagingStorage interface {
	/* This interface provides a pluggable mechanism for implementing a variety
	   of offline message storage solutions. When the app wants to send a message
	   to an offline recipient it will call this store function. Implementations
	   are expected to store the message somewhere accessible to the recipient.
	   The return should be a `Multiadddr` of the storage location. Upon receiving
	   the response to this function a `Pointer` to the location of the message
	   will be placed in the DHT using the recipient's peer ID as the key.

	   Some storage possibilities include:
	   IPFS Seeding -> assumes this node remains online all the time
	   Dropbox -> go dropbox drivers are available
	   Custom Options -> create your own free or paid service.

	   Note all messages are encrypted before passed in here. */
	Store(peerID peer.ID, ciphertext []byte) (ma.Multiaddr, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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