Documentation
¶
Overview ¶
Code generated by go generate; DO NOT EDIT. This file was generated at 2020-10-27 16:12:52.104263 -0700 PDT m=+0.000904445
Code generated by go generate; DO NOT EDIT. This file was generated at 2020-10-27 16:12:52.488674 -0700 PDT m=+0.001534622
Code generated by go generate; DO NOT EDIT. This file was generated at 2020-10-27 16:12:52.822523 -0700 PDT m=+0.000993817
Index ¶
- Variables
- func BindEvents(binder rangedb.EventBinder)
- func New(store rangedb.Store) (cqrs.CommandDispatcher, error)
- func NewRoom() *room
- func NewUser() *user
- func NewWarnedUsersProjection() *warnedUsersProjection
- type BanUserFromRoom
- type JoinRoom
- type MessageWasSentToRoom
- type OnBoardRoom
- type OnBoardUser
- type PrivateMessageWasSentToRoom
- type RemoveUserFromRoom
- type RoomWasJoined
- type RoomWasOnBoarded
- type SendMessageToRoom
- type SendPrivateMessageToRoom
- type UserWasBannedFromRoom
- type UserWasOnBoarded
- type UserWasRemovedFromRoom
- type UserWasWarned
- type WarnUser
Constants ¶
This section is empty.
Variables ¶
View Source
var RestrictedWords = []string{"golly", "dagnabit", "gadzooks"}
RestrictedWords contains restricted words not allowed in this example chat application.
Functions ¶
func BindEvents ¶
func BindEvents(binder rangedb.EventBinder)
func New ¶
func New(store rangedb.Store) (cqrs.CommandDispatcher, error)
New constructs a new CQRS chat application that accepts commands to be dispatched.
func NewWarnedUsersProjection ¶ added in v0.5.0
func NewWarnedUsersProjection() *warnedUsersProjection
NewWarnedUsersProjection constructs a projection for tracking the number of warnings by user.
Types ¶
type BanUserFromRoom ¶ added in v0.5.0
type BanUserFromRoom struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
Reason string `json:"reason"`
Timeout uint `json:"timeout"`
}
func (BanUserFromRoom) AggregateID ¶ added in v0.5.0
func (c BanUserFromRoom) AggregateID() string
func (BanUserFromRoom) AggregateType ¶ added in v0.5.0
func (c BanUserFromRoom) AggregateType() string
func (BanUserFromRoom) CommandType ¶ added in v0.5.0
func (c BanUserFromRoom) CommandType() string
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 RemoveUserFromRoom ¶ added in v0.5.0
type RemoveUserFromRoom struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
Reason string `json:"reason"`
}
func (RemoveUserFromRoom) AggregateID ¶ added in v0.5.0
func (c RemoveUserFromRoom) AggregateID() string
func (RemoveUserFromRoom) AggregateType ¶ added in v0.5.0
func (c RemoveUserFromRoom) AggregateType() string
func (RemoveUserFromRoom) CommandType ¶ added in v0.5.0
func (c RemoveUserFromRoom) CommandType() 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 UserWasBannedFromRoom ¶ added in v0.5.0
type UserWasBannedFromRoom struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
Reason string `json:"reason"`
Timeout uint `json:"timeout"`
}
func (UserWasBannedFromRoom) AggregateID ¶ added in v0.5.0
func (e UserWasBannedFromRoom) AggregateID() string
func (UserWasBannedFromRoom) AggregateType ¶ added in v0.5.0
func (e UserWasBannedFromRoom) AggregateType() string
func (UserWasBannedFromRoom) EventType ¶ added in v0.5.0
func (e UserWasBannedFromRoom) EventType() 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
type UserWasRemovedFromRoom ¶ added in v0.5.0
type UserWasRemovedFromRoom struct {
RoomID string `json:"roomID"`
UserID string `json:"userID"`
Reason string `json:"reason"`
}
func (UserWasRemovedFromRoom) AggregateID ¶ added in v0.5.0
func (e UserWasRemovedFromRoom) AggregateID() string
func (UserWasRemovedFromRoom) AggregateType ¶ added in v0.5.0
func (e UserWasRemovedFromRoom) AggregateType() string
func (UserWasRemovedFromRoom) EventType ¶ added in v0.5.0
func (e UserWasRemovedFromRoom) EventType() string
type UserWasWarned ¶ added in v0.5.0
func (UserWasWarned) AggregateID ¶ added in v0.5.0
func (e UserWasWarned) AggregateID() string
func (UserWasWarned) AggregateType ¶ added in v0.5.0
func (e UserWasWarned) AggregateType() string
func (UserWasWarned) EventType ¶ added in v0.5.0
func (e UserWasWarned) EventType() string
type WarnUser ¶ added in v0.5.0
func (WarnUser) AggregateID ¶ added in v0.5.0
func (WarnUser) AggregateType ¶ added in v0.5.0
func (WarnUser) CommandType ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.
