Documentation
¶
Index ¶
- func NewClientNodeMap() *clientNodeMap
- func NewMessagingClient(failedChannel chan registry.NodeEvent, options ...ClientNodeOption) *messagingClient
- func NewResponseMap() *responseMap
- func NewSubscriberMap() *subscriberMap
- type BadMessageTypeError
- type ClientNode
- type ClientNodeMapper
- type ClientNodeOption
- type ClientNodeOptions
- type ClientRetryOptionsInput
- type ContextDoneUnsentMessageError
- type ResponseMapper
- type SubMapper
- type UnknownNodeEventError
- type UnregisteredClientNodeError
- type UnregisteredResponseError
- type UnregisteredSubjectError
- type UnregisteredSubscriberError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientNodeMap ¶
func NewClientNodeMap() *clientNodeMap
func NewMessagingClient ¶
func NewMessagingClient(failedChannel chan registry.NodeEvent, options ...ClientNodeOption) *messagingClient
func NewResponseMap ¶
func NewResponseMap() *responseMap
func NewSubscriberMap ¶
func NewSubscriberMap() *subscriberMap
Types ¶
type BadMessageTypeError ¶
func (*BadMessageTypeError) Error ¶
func (err *BadMessageTypeError) Error() string
type ClientNode ¶
type ClientNode struct { registry.Node proto.MessageClient CurrentId string }
func NewClientNode ¶
func NewClientNode(node registry.Node, currrentId string, optionFuncs ...ClientNodeOption) (*ClientNode, error)
func (*ClientNode) AttemptMessage ¶
type ClientNodeMapper ¶
type ClientNodeOption ¶
type ClientNodeOption func(c *ClientNodeOptions) *ClientNodeOptions
func WithClientRetryOptions ¶
func WithClientRetryOptions(input ClientRetryOptionsInput) ClientNodeOption
func WithDialOptions ¶
func WithDialOptions(option ...grpc.DialOption) ClientNodeOption
WithDialOption sets the dial options for gRPC connections in the client
func WithInsecure ¶
func WithInsecure() ClientNodeOption
WithDialOption sets the dial options for gRPC connections in the client
type ClientNodeOptions ¶
type ClientNodeOptions struct {
// contains filtered or unexported fields
}
type ClientRetryOptionsInput ¶
type ContextDoneUnsentMessageError ¶
type ContextDoneUnsentMessageError struct {
MessageId string
}
func (*ContextDoneUnsentMessageError) Error ¶
func (err *ContextDoneUnsentMessageError) Error() string
type ResponseMapper ¶
type ResponseMapper interface { PushResponse(messaging.ResponseInfo) GenerateIdsByMessage(string) (<-chan string, error) }
type UnknownNodeEventError ¶
func (*UnknownNodeEventError) Error ¶
func (err *UnknownNodeEventError) Error() string
type UnregisteredClientNodeError ¶
type UnregisteredClientNodeError struct {
Id string
}
func (*UnregisteredClientNodeError) Error ¶
func (err *UnregisteredClientNodeError) Error() string
type UnregisteredResponseError ¶
type UnregisteredResponseError struct {
MessageId string
}
func (*UnregisteredResponseError) Error ¶
func (err *UnregisteredResponseError) Error() string
type UnregisteredSubjectError ¶
type UnregisteredSubjectError struct {
Subject string
}
func (*UnregisteredSubjectError) Error ¶
func (err *UnregisteredSubjectError) Error() string
type UnregisteredSubscriberError ¶
func (*UnregisteredSubscriberError) Error ¶
func (err *UnregisteredSubscriberError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.