direct

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageTimeout = time.Second * 60

	ID = "/chat/message/0.0.1"

	ServiceName = "chat.message"

	MaxMsgSize = 10 * 1024 // 4K

	StreamTimeout  = time.Minute
	ConnectTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

func Send

func Send(s network.Stream, pbmsg proto.Message) error

func SetMessageHandler

func SetMessageHandler(h host.Host, cb func(m *pb.Message))

Types

This section is empty.

Jump to

Keyboard shortcuts

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