Documentation
¶
Index ¶
- Variables
- func BindEvents(binder rangedb.EventBinder)
- func New(store rangedb.Store) cqrs.CommandDispatcher
- func NewRoom() *room
- func NewUser() *user
- type JoinRoom
- type MessageWasSentToRoom
- type OnBoardRoom
- type OnBoardUser
- type PrivateMessageWasSentToRoom
- type RoomWasJoined
- type RoomWasOnBoarded
- type SendMessageToRoom
- type SendPrivateMessageToRoom
- type UserWasOnBoarded
Constants ¶
This section is empty.
Variables ¶
View Source
var RestrictedWords = []string{"golly", "dagnabit", "gadzooks"}
Functions ¶
func BindEvents ¶
func BindEvents(binder rangedb.EventBinder)
Types ¶
type JoinRoom ¶
func (JoinRoom) AggregateID ¶
func (JoinRoom) AggregateType ¶
func (JoinRoom) CommandType ¶
type MessageWasSentToRoom ¶
type MessageWasSentToRoom struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
Message string `json:"message"`
}
func (MessageWasSentToRoom) AggregateID ¶
func (e MessageWasSentToRoom) AggregateID() string
func (MessageWasSentToRoom) AggregateType ¶
func (e MessageWasSentToRoom) AggregateType() string
func (MessageWasSentToRoom) EventType ¶
func (e MessageWasSentToRoom) EventType() string
type OnBoardRoom ¶
type OnBoardRoom struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
RoomName string `json:"roomName"`
}
func (OnBoardRoom) AggregateID ¶
func (c OnBoardRoom) AggregateID() string
func (OnBoardRoom) AggregateType ¶
func (c OnBoardRoom) AggregateType() string
func (OnBoardRoom) CommandType ¶
func (c OnBoardRoom) CommandType() string
type OnBoardUser ¶
func (OnBoardUser) AggregateID ¶
func (c OnBoardUser) AggregateID() string
func (OnBoardUser) AggregateType ¶
func (c OnBoardUser) AggregateType() string
func (OnBoardUser) CommandType ¶
func (c OnBoardUser) CommandType() string
type PrivateMessageWasSentToRoom ¶
type PrivateMessageWasSentToRoom struct {
RoomID string `json:"roomID"`
TargetUserID string `json:"userID"`
Message string `json:"message"`
}
func (PrivateMessageWasSentToRoom) AggregateID ¶
func (e PrivateMessageWasSentToRoom) AggregateID() string
func (PrivateMessageWasSentToRoom) AggregateType ¶
func (e PrivateMessageWasSentToRoom) AggregateType() string
func (PrivateMessageWasSentToRoom) EventType ¶
func (e PrivateMessageWasSentToRoom) EventType() string
type RoomWasJoined ¶
func (RoomWasJoined) AggregateID ¶
func (e RoomWasJoined) AggregateID() string
func (RoomWasJoined) AggregateType ¶
func (e RoomWasJoined) AggregateType() string
func (RoomWasJoined) EventType ¶
func (e RoomWasJoined) EventType() string
type RoomWasOnBoarded ¶
type RoomWasOnBoarded struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
RoomName string `json:"roomName"`
}
func (RoomWasOnBoarded) AggregateID ¶
func (e RoomWasOnBoarded) AggregateID() string
func (RoomWasOnBoarded) AggregateType ¶
func (e RoomWasOnBoarded) AggregateType() string
func (RoomWasOnBoarded) EventType ¶
func (e RoomWasOnBoarded) EventType() string
type SendMessageToRoom ¶
type SendMessageToRoom struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
Message string `json:"message"`
}
func (SendMessageToRoom) AggregateID ¶
func (c SendMessageToRoom) AggregateID() string
func (SendMessageToRoom) AggregateType ¶
func (c SendMessageToRoom) AggregateType() string
func (SendMessageToRoom) CommandType ¶
func (c SendMessageToRoom) CommandType() string
type SendPrivateMessageToRoom ¶
type SendPrivateMessageToRoom struct {
RoomID string `json:"roomID"`
TargetUserID string `json:"userID"`
Message string `json:"message"`
}
func (SendPrivateMessageToRoom) AggregateID ¶
func (c SendPrivateMessageToRoom) AggregateID() string
func (SendPrivateMessageToRoom) AggregateType ¶
func (c SendPrivateMessageToRoom) AggregateType() string
func (SendPrivateMessageToRoom) CommandType ¶
func (c SendPrivateMessageToRoom) CommandType() string
type UserWasOnBoarded ¶
func (UserWasOnBoarded) AggregateID ¶
func (e UserWasOnBoarded) AggregateID() string
func (UserWasOnBoarded) AggregateType ¶
func (e UserWasOnBoarded) AggregateType() string
func (UserWasOnBoarded) EventType ¶
func (e UserWasOnBoarded) EventType() string
Click to show internal directories.
Click to hide internal directories.
