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 ¶
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
Click to show internal directories.
Click to hide internal directories.