channel

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func GetChannel

func GetChannel(stream network.Stream, peer *peer.AddrInfo, handler func(data string)) (*Channel, error)

func (*Channel) Close

func (channel *Channel) Close()

func (*Channel) Read

func (channel *Channel) Read() (msg *P2PMessage, err error)

func (*Channel) Write

func (channel *Channel) Write(messageType int, data string) (err error)

type P2PMessage

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

Jump to

Keyboard shortcuts

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