Documentation ¶
Overview ¶
Package rpc implements rpc engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine handles RPC requests.
func (*Engine) Do ¶
Do sends request to server and blocks until response is received, performing multiple retries if needed.
func (*Engine) NotifyAcks ¶
NotifyAcks notifies engine about received acknowledgements.
func (*Engine) NotifyError ¶
NotifyError notifies engine about received RPC error.
type RetryLimitReachedErr ¶ added in v0.13.0
type RetryLimitReachedErr struct {
Retries int
}
RetryLimitReachedErr means that server does not acknowledge request after multiple retries.
func (*RetryLimitReachedErr) Error ¶ added in v0.13.0
func (r *RetryLimitReachedErr) Error() string
func (*RetryLimitReachedErr) Is ¶ added in v0.13.0
func (r *RetryLimitReachedErr) Is(err error) bool
Is reports whether err is RetryLimitReachedErr.
Click to show internal directories.
Click to hide internal directories.