Documentation ¶
Index ¶
- Variables
- func HasNoQueue(queues []Queue, queue *Queue) bool
- func NewRecipientName(components *RecipientNameComponents) string
- func NewRoutingKey(components *RoutingKeyComponents) string
- type Attributes
- type BindingKeys
- type Broker
- type Consumer
- type Message
- type Meta
- type Queue
- type RecipientNameComponents
- type Router
- type RoutingKeyComponents
Constants ¶
This section is empty.
Variables ¶
View Source
var Status = struct { Queued, Succeeded, Failed, Done string }{ Queued: "queued", Succeeded: "succeeded", Failed: "failed", Done: "done", }
View Source
var Type = struct { Event, Command string }{ Event: "event", Command: "command", }
Functions ¶
func HasNoQueue ¶
func NewRecipientName ¶
func NewRecipientName(components *RecipientNameComponents) string
func NewRoutingKey ¶
func NewRoutingKey(components *RoutingKeyComponents) string
Types ¶
type Attributes ¶
type Attributes = []byte
type BindingKeys ¶
type BindingKeys = []string
type Queue ¶
type Queue struct { Name string Bindings BindingKeys }
type RecipientNameComponents ¶
type RecipientNameComponents struct {
Service, Entity, Action, Event, Command, Status string
}
Terminology:
- Service = Module
- Entity = Aggregate/Root
Nomenclature of a Recipient Name:
- service.entity.action_on_event/command_status
- user.user.send_confirmation_on_created_succeeded
type RoutingKeyComponents ¶
type RoutingKeyComponents struct {
Organization, Service, Version, Type, Entity, Event, Command, Status string
}
Terminology:
- Organization = Context
- Service = Module
- Entity = Aggregate/Root
Nomenclature of a Routing Key (Topic):
- organization.service.version.type.entity.event/command.status
- codexgo.user.1.event.user.created.succeeded
Source Files ¶
Click to show internal directories.
Click to hide internal directories.