Documentation
¶
Index ¶
- func DispatchFinal(retries []time.Duration, attempt int) bool
- func DispatchRetryDelay(retries []time.Duration, attempt int) (time.Duration, bool)
- func IsRetryableDispatchError(err error) bool
- func ListNodes() []infra.NodeInfo
- func ListServices() []infra.ServiceInfo
- func Stats() []infra.ServiceStats
- type Config
- type Configs
- type Connection
- type DispatchError
- type Driver
- type Handler
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispatchRetryDelay ¶ added in v0.13.0
func IsRetryableDispatchError ¶ added in v0.13.0
func ListServices ¶ added in v0.7.0
func ListServices() []infra.ServiceInfo
func Stats ¶ added in v0.7.0
func Stats() []infra.ServiceStats
Types ¶
type Connection ¶ added in v0.7.0
type Connection interface {
Open() error
Close() error
Start() error
Stop() error
RegisterService(subject string, retries []time.Duration) error
RegisterMessage(subject string) error
Request(subject string, data []byte, timeout time.Duration) ([]byte, error)
Publish(subject string, data []byte) error
Enqueue(subject string, data []byte) error
Stats() []infra.ServiceStats
ListNodes() []infra.NodeInfo
ListServices() []infra.ServiceInfo
}
Connection defines a bus transport connection.
type DispatchError ¶ added in v0.13.0
type DispatchError struct {
// contains filtered or unexported fields
}
func (DispatchError) Error ¶ added in v0.13.0
func (e DispatchError) Error() string
func (DispatchError) Result ¶ added in v0.13.0
func (e DispatchError) Result() base.Res
func (DispatchError) Retryable ¶ added in v0.13.0
func (e DispatchError) Retryable() bool
type Driver ¶
type Driver interface {
Connect(*Instance) (Connection, error)
}
Driver connections a bus transport.
type Instance ¶
func (*Instance) HandleAsync ¶ added in v0.7.0
HandleAsync is kept as compatibility alias of HandleServiceAsync.
func (*Instance) HandleCall ¶ added in v0.7.0
HandleCall handles request/reply for a bus instance.
func (*Instance) HandleMessage ¶ added in v0.13.0
HandleMessage handles async execution (broadcast/rolecast) for message entries.
Click to show internal directories.
Click to hide internal directories.