zrpc

package module
v0.0.0-...-1e4034a Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: MIT Imports: 12 Imported by: 0

README

go-zrpc

Travis CI CodeCov License Documentation

Golang implementation of the ZeroRPC protocol.

Work in progress (not usable yet)!

Installation

Make sure you have C compiler and libzmq development libraries installed. Pure Go ZeroMQ implementation (go-zeromq) support is planned in 1.0.

go get github.com/foxcpp/go-zrpc
Usage

...

License

MIT. Go ahead and use it, just don't touch copyright notices.

Documentation

Overview

zrpc package implements ZeroRPC (https://zerorpc.io) protocol.

Index

Constants

View Source
const (
	HeartbeatEvent = "_zpc_hb"
	WindowSize     = "_zpc_more"
)
View Source
const ProtocolVersion = 3

ProtocolVersion constant specifies version of ZeroRPC protocol implemented by this library, all other versions are unsupported and responses/requests with them will be rejected (i.e. go-zrpc is incompatible with ZeroRPC 1 and ZeroRPC 2).

Variables

View Source
var ErrRemoteLost = errors.New("zrpc: remote stopped sending heartbeats")

Functions

func IsIntr

func IsIntr(err error) bool

Types

type ErrIncompatibleVersion

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

ErrIncompatibleVersion is returned when version number in received message doesn't matches protocol version implemented by library.

func (ErrIncompatibleVersion) Error

func (ive ErrIncompatibleVersion) Error() string

Jump to

Keyboard shortcuts

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