Documentation ¶
Index ¶
Constants ¶
View Source
const (
ServiceName service.Name = "bus"
)
Variables ¶
Functions ¶
func ServiceProvider ¶
Types ¶
type Bus ¶
type Bus interface { Subscribe(ctx context.Context, ns MessageNamespace, msgType MessageType) (<-chan Message, error) Unsubscribe(ctx context.Context, ns MessageNamespace, msgType MessageType, ch <-chan Message) Publish(ctx context.Context, msg Message) error Request(ctx context.Context, msg Message) (Message, error) Reply(ctx context.Context, ns MessageNamespace, msgType MessageType, h RequestHandler) error }
type Message ¶
type Message interface { MessageNamespace() MessageNamespace MessageType() MessageType }
type MessageNamespace ¶
type MessageNamespace string
func NewMessageNamespace ¶
func NewMessageNamespace(namespaces ...MessageNamespace) MessageNamespace
type MessageType ¶
type MessageType string
type RequestHandler ¶
Click to show internal directories.
Click to hide internal directories.