whisper

package
v0.0.0-...-e92e5e3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Whisper

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

func New

func New() *Whisper

func (*Whisper) Call

func (ws *Whisper) Call(ctx context.Context, h host.Host, destination string) (*bufio.ReadWriter, error)

func (*Whisper) Close

func (ws *Whisper) Close()

func (*Whisper) HandleStream

func (ws *Whisper) HandleStream(s network.Stream)

func (*Whisper) Host

func (ws *Whisper) Host(port int, randomness io.Reader) (host.Host, error)

func (*Whisper) Listen

func (ws *Whisper) Listen(ctx context.Context, h host.Host, streamHandler network.StreamHandler)

func (*Whisper) ReadData

func (ws *Whisper) ReadData(rw *bufio.ReadWriter)

func (*Whisper) WriteData

func (ws *Whisper) WriteData(rw *bufio.ReadWriter)

Jump to

Keyboard shortcuts

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