protobufmessaging

package module
v0.0.0-...-685f68c Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageLengthSize = 8
	MaxMessageSize    = 1024 * 1024 // 1MB should be plenty
	ReadTimeout       = 10 * time.Second
	WriteTimeout      = 10 * time.Second
)

Variables

This section is empty.

Functions

func ReceiveMessage

func ReceiveMessage(conn net.Conn) (*miniraft.Raft, error)

func SendMessage

func SendMessage(conn net.Conn, message *miniraft.Raft) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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