Documentation ¶
Index ¶
- Constants
- func NewBannerCreatedEvent(bannerEntity *entities.BannerEntity) contracts.BannerEvent
- func NewBannerDeletedEvent(bannerEntity *entities.BannerEntity) contracts.BannerEvent
- func NewBannerUpdatedEvent(bannerEntity *entities.BannerEntity) contracts.BannerEvent
- func NewCategoryCreatedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
- func NewCategoryDeletedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
- func NewCategoryParentChangedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
- func NewCategoryParentRemovedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
- func NewCategoryUpdatedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
- func NewChannelCreatedEvent(channelEntity *entities.ChannelEntity) contracts.ChannelEvent
- func NewChannelDeletedEvent(channelEntity *entities.ChannelEntity) contracts.ChannelEvent
- func NewChannelUpdatedEvent(channelEntity *entities.ChannelEntity) contracts.ChannelEvent
- func NewCommentCreatedEvent(commentEntity *entities.CommentEntity) contracts.CommentEvent
- func NewCommentDeletedEvent(commentEntity *entities.CommentEntity) contracts.CommentEvent
- func NewCommentUpdatedEvent(commentEntity *entities.CommentEntity) contracts.CommentEvent
- func NewEvent(name string) contracts.Event
- func NewFileDeletedEvent(fileEntity *entities.FileEntity) contracts.FileEvent
- func NewFileUpdatedEvent(fileEntity *entities.FileEntity) contracts.FileEvent
- func NewFileUploadedEvent(fileEntity *entities.FileEntity) contracts.FileEvent
- func NewPollCreatedEvent(pollEntity *entities.PollEntity) contracts.PollEvent
- func NewPollDeletedEvent(pollEntity *entities.PollEntity) contracts.PollEvent
- func NewPollUpdatedEvent(pollEntity *entities.PollEntity) contracts.PollEvent
- func NewPostAuthorChangedEvent(postEntity *entities.PostEntity, postAuthorEntity *entities.UserEntity) contracts.PostAuthorEvent
- func NewPostCategoryAddedEvent(postEntity *entities.PostEntity, categoryEntity *entities.CategoryEntity) contracts.PostCategoryEvent
- func NewPostCategoryRemovedEvent(postEntity *entities.PostEntity, categoryEntity *entities.CategoryEntity) contracts.PostCategoryEvent
- func NewPostConcealedEvent(postEntity *entities.PostEntity) contracts.PostEvent
- func NewPostCreatedEvent(postEntity *entities.PostEntity) contracts.PostEvent
- func NewPostDeletedEvent(postEntity *entities.PostEntity) contracts.PostEvent
- func NewPostPictureChangedEvent(postEntity *entities.PostEntity, postPicture *entities.FileEntity) contracts.PostPictureEvent
- func NewPostPictureRemovedEvent(postEntity *entities.PostEntity) contracts.PostPictureEvent
- func NewPostPublishedEvent(postEntity *entities.PostEntity) contracts.PostEvent
- func NewPostTagAddedEvent(postEntity *entities.PostEntity, tagEntity *entities.TagEntity) contracts.PostTagEvent
- func NewPostTagRemovedEvent(postEntity *entities.PostEntity, tagEntity *entities.TagEntity) contracts.PostTagEvent
- func NewPostUpdatedEvent(postEntity *entities.PostEntity) contracts.PostEvent
- func NewPostVideoChangedEvent(postEntity *entities.PostEntity, postVideo *entities.FileEntity) contracts.PostVideoEvent
- func NewPostVideoRemovedEvent(postEntity *entities.PostEntity) contracts.PostVideoEvent
- func NewTagCreatedEvent(tagEntity *entities.TagEntity) contracts.TagEvent
- func NewTagDeletedEvent(tagEntity *entities.TagEntity) contracts.TagEvent
- func NewTagUpdatedEvent(tagEntity *entities.TagEntity) contracts.TagEvent
- func NewUserCreatedEvent(userEntity *entities.UserEntity) contracts.UserEvent
- func NewUserDeletedEvent(userEntity *entities.UserEntity) contracts.UserEvent
- func NewUserIdentityChangedEvent(userEntity *entities.UserEntity) contracts.UserEvent
- func NewUserPasswordChangedEvent(userEntity *entities.UserEntity) contracts.UserEvent
- func NewUserPictureChangedEvent(userEntity *entities.UserEntity, userPicture *entities.FileEntity) contracts.UserPictureEvent
- func NewUserPictureRemovedEvent(userEntity *entities.UserEntity) contracts.UserPictureEvent
- func NewUserUpdatedEvent(userEntity *entities.UserEntity) contracts.UserEvent
- func NewUserVerifiedEvent(userEntity *entities.UserEntity) contracts.UserEvent
- type BannerEvent
- type CategoryEvent
- type ChannelEvent
- type CommentEvent
- type Event
- type FileEvent
- type PollEvent
- type PostAuthorEvent
- type PostCategoryEvent
- type PostEvent
- type PostPictureEvent
- type PostTagEvent
- type PostVideoEvent
- type TagEvent
- type UserEvent
- type UserPictureEvent
Constants ¶
View Source
const ( BannerCreatedEventName = "BannerCreatedEvent" BannerUpdatedEventName = "BannerUpdatedEvent" BannerDeletedEventName = "BannerDeletedEvent" )
View Source
const ( CategoryCreatedEventName = "CategoryCreatedEvent" CategoryUpdatedEventName = "CategoryUpdatedEvent" CategoryDeletedEventName = "CategoryDeletedEvent" CategoryParentChangedEventName = "CategoryParentChangedEvent" CategoryParentRemovedEventName = "CategoryParentRemovedEvent" )
View Source
const ( ChannelCreatedEventName = "ChannelCreatedEvent" ChannelUpdatedEventName = "ChannelUpdatedEvent" ChannelDeletedEventName = "ChannelDeletedEvent" )
View Source
const ( CommentCreatedEventName = "CommentCreatedEvent" CommentUpdatedEventName = "CommentUpdatedEvent" CommentDeletedEventName = "CommentDeletedEvent" )
View Source
const ( FileUploadedEventName = "FileUploadedEvent" FileUpdatedEventName = "FileUpdatedEvent" FileDeletedEventName = "FileDeletedEvent" )
View Source
const ( PollCreatedEventName = "PollCreatedEvent" PollUpdatedEventName = "PollUpdatedEvent" PollDeletedEventName = "PollDeletedEvent" )
View Source
const ( PostCategoryAddedEventName = "PostCategoryAddedEvent" PostCategoryRemovedEventName = "PostCategoryRemovedEvent" )
View Source
const ( PostCreatedEventName = "PostCreatedEvent" PostUpdatedEventName = "PostUpdatedEvent" PostDeletedEventName = "PostDeletedEvent" PostPublishedEventName = "PostPublishedEvent" PostConcealedEventName = "PostConcealedEvent" )
View Source
const ( PostPictureChangedEventName = "PostPictureChangedEvent" PostPictureRemovedEventName = "PostPictureRemovedEvent" )
View Source
const ( PostTagAddedEventName = "PostTagAddedEvent" PostTagRemovedEventName = "PostTagRemovedEvent" )
View Source
const ( PostVideoChangedEventName = "PostVideoChangedEvent" PostVideoRemovedEventName = "PostVideoRemovedEvent" )
View Source
const ( TagCreatedEventName = "TagCreatedEvent" TagUpdatedEventName = "TagUpdatedEvent" TagDeletedEventName = "TagDeletedEvent" )
View Source
const ( UserCreatedEventName = "UserCreatedEvent" UserUpdatedEventName = "UserUpdatedEvent" UserVerifiedEventName = "UserVerifiedEvent" UserIdentityChangedEventName = "UserIdentityChangedEvent" UserPasswordChangedEventName = "UserPasswordChangedEvent" UserDeletedEventName = "UserDeletedEvent" )
View Source
const ( UserPictureChangedEventName = "UserPictureChangedEvent" UserPictureRemovedEventName = "UserPictureRemovedEvent" )
View Source
const (
PostAuthorChangedEventName = "PostAuthorChangedEvent"
)
Variables ¶
This section is empty.
Functions ¶
func NewBannerCreatedEvent ¶
func NewBannerCreatedEvent(bannerEntity *entities.BannerEntity) contracts.BannerEvent
func NewBannerDeletedEvent ¶
func NewBannerDeletedEvent(bannerEntity *entities.BannerEntity) contracts.BannerEvent
func NewBannerUpdatedEvent ¶
func NewBannerUpdatedEvent(bannerEntity *entities.BannerEntity) contracts.BannerEvent
func NewCategoryCreatedEvent ¶
func NewCategoryCreatedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
func NewCategoryDeletedEvent ¶
func NewCategoryDeletedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
func NewCategoryParentChangedEvent ¶
func NewCategoryParentChangedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
func NewCategoryParentRemovedEvent ¶
func NewCategoryParentRemovedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
func NewCategoryUpdatedEvent ¶
func NewCategoryUpdatedEvent(categoryEntity *entities.CategoryEntity) contracts.CategoryEvent
func NewChannelCreatedEvent ¶
func NewChannelCreatedEvent(channelEntity *entities.ChannelEntity) contracts.ChannelEvent
func NewChannelDeletedEvent ¶
func NewChannelDeletedEvent(channelEntity *entities.ChannelEntity) contracts.ChannelEvent
func NewChannelUpdatedEvent ¶
func NewChannelUpdatedEvent(channelEntity *entities.ChannelEntity) contracts.ChannelEvent
func NewCommentCreatedEvent ¶
func NewCommentCreatedEvent(commentEntity *entities.CommentEntity) contracts.CommentEvent
func NewCommentDeletedEvent ¶
func NewCommentDeletedEvent(commentEntity *entities.CommentEntity) contracts.CommentEvent
func NewCommentUpdatedEvent ¶
func NewCommentUpdatedEvent(commentEntity *entities.CommentEntity) contracts.CommentEvent
func NewFileDeletedEvent ¶
func NewFileDeletedEvent(fileEntity *entities.FileEntity) contracts.FileEvent
func NewFileUpdatedEvent ¶
func NewFileUpdatedEvent(fileEntity *entities.FileEntity) contracts.FileEvent
func NewFileUploadedEvent ¶
func NewFileUploadedEvent(fileEntity *entities.FileEntity) contracts.FileEvent
func NewPollCreatedEvent ¶
func NewPollCreatedEvent(pollEntity *entities.PollEntity) contracts.PollEvent
func NewPollDeletedEvent ¶
func NewPollDeletedEvent(pollEntity *entities.PollEntity) contracts.PollEvent
func NewPollUpdatedEvent ¶
func NewPollUpdatedEvent(pollEntity *entities.PollEntity) contracts.PollEvent
func NewPostAuthorChangedEvent ¶
func NewPostAuthorChangedEvent( postEntity *entities.PostEntity, postAuthorEntity *entities.UserEntity, ) contracts.PostAuthorEvent
func NewPostCategoryAddedEvent ¶
func NewPostCategoryAddedEvent( postEntity *entities.PostEntity, categoryEntity *entities.CategoryEntity, ) contracts.PostCategoryEvent
NewPostCategoryAddedEvent
func NewPostCategoryRemovedEvent ¶
func NewPostCategoryRemovedEvent( postEntity *entities.PostEntity, categoryEntity *entities.CategoryEntity, ) contracts.PostCategoryEvent
NewPostCategoryRemovedEvent
func NewPostConcealedEvent ¶
func NewPostConcealedEvent(postEntity *entities.PostEntity) contracts.PostEvent
func NewPostCreatedEvent ¶
func NewPostCreatedEvent(postEntity *entities.PostEntity) contracts.PostEvent
func NewPostDeletedEvent ¶
func NewPostDeletedEvent(postEntity *entities.PostEntity) contracts.PostEvent
func NewPostPictureChangedEvent ¶
func NewPostPictureChangedEvent( postEntity *entities.PostEntity, postPicture *entities.FileEntity, ) contracts.PostPictureEvent
func NewPostPictureRemovedEvent ¶
func NewPostPictureRemovedEvent(postEntity *entities.PostEntity) contracts.PostPictureEvent
func NewPostPublishedEvent ¶
func NewPostPublishedEvent(postEntity *entities.PostEntity) contracts.PostEvent
func NewPostTagAddedEvent ¶
func NewPostTagAddedEvent( postEntity *entities.PostEntity, tagEntity *entities.TagEntity, ) contracts.PostTagEvent
NewPostTagAddedEvent
func NewPostTagRemovedEvent ¶
func NewPostTagRemovedEvent( postEntity *entities.PostEntity, tagEntity *entities.TagEntity, ) contracts.PostTagEvent
NewPostTagRemovedEvent
func NewPostUpdatedEvent ¶
func NewPostUpdatedEvent(postEntity *entities.PostEntity) contracts.PostEvent
func NewPostVideoChangedEvent ¶
func NewPostVideoChangedEvent( postEntity *entities.PostEntity, postVideo *entities.FileEntity, ) contracts.PostVideoEvent
func NewPostVideoRemovedEvent ¶
func NewPostVideoRemovedEvent(postEntity *entities.PostEntity) contracts.PostVideoEvent
func NewUserCreatedEvent ¶
func NewUserCreatedEvent(userEntity *entities.UserEntity) contracts.UserEvent
func NewUserDeletedEvent ¶
func NewUserDeletedEvent(userEntity *entities.UserEntity) contracts.UserEvent
func NewUserIdentityChangedEvent ¶
func NewUserIdentityChangedEvent(userEntity *entities.UserEntity) contracts.UserEvent
func NewUserPasswordChangedEvent ¶
func NewUserPasswordChangedEvent(userEntity *entities.UserEntity) contracts.UserEvent
func NewUserPictureChangedEvent ¶
func NewUserPictureChangedEvent( userEntity *entities.UserEntity, userPicture *entities.FileEntity, ) contracts.UserPictureEvent
func NewUserPictureRemovedEvent ¶
func NewUserPictureRemovedEvent(userEntity *entities.UserEntity) contracts.UserPictureEvent
func NewUserUpdatedEvent ¶
func NewUserUpdatedEvent(userEntity *entities.UserEntity) contracts.UserEvent
func NewUserVerifiedEvent ¶
func NewUserVerifiedEvent(userEntity *entities.UserEntity) contracts.UserEvent
Types ¶
type BannerEvent ¶
type BannerEvent struct { *Event // contains filtered or unexported fields }
func (*BannerEvent) BannerEntity ¶
func (e *BannerEvent) BannerEntity() *entities.BannerEntity
type CategoryEvent ¶
type CategoryEvent struct { *Event // contains filtered or unexported fields }
func (*CategoryEvent) CategoryEntity ¶
func (e *CategoryEvent) CategoryEntity() *entities.CategoryEntity
type ChannelEvent ¶
type ChannelEvent struct { *Event // contains filtered or unexported fields }
func (*ChannelEvent) ChannelEntity ¶
func (e *ChannelEvent) ChannelEntity() *entities.ChannelEntity
type CommentEvent ¶
type CommentEvent struct { *Event // contains filtered or unexported fields }
func (*CommentEvent) CommentEntity ¶
func (e *CommentEvent) CommentEntity() *entities.CommentEntity
type FileEvent ¶
type FileEvent struct { *Event // contains filtered or unexported fields }
func (*FileEvent) FileEntity ¶
func (e *FileEvent) FileEntity() *entities.FileEntity
type PollEvent ¶
type PollEvent struct { *Event // contains filtered or unexported fields }
func (*PollEvent) PollEntity ¶
func (e *PollEvent) PollEntity() *entities.PollEntity
type PostAuthorEvent ¶
type PostAuthorEvent struct { *Event // contains filtered or unexported fields }
func (*PostAuthorEvent) PostAuthorEntity ¶
func (e *PostAuthorEvent) PostAuthorEntity() *entities.UserEntity
func (*PostAuthorEvent) PostEntity ¶
func (e *PostAuthorEvent) PostEntity() *entities.PostEntity
type PostCategoryEvent ¶
type PostCategoryEvent struct { *Event // contains filtered or unexported fields }
func (*PostCategoryEvent) CategoryEntity ¶
func (e *PostCategoryEvent) CategoryEntity() *entities.CategoryEntity
CategoryEntity
func (*PostCategoryEvent) PostEntity ¶
func (e *PostCategoryEvent) PostEntity() *entities.PostEntity
PostEntity
type PostEvent ¶
type PostEvent struct { *Event // contains filtered or unexported fields }
func (*PostEvent) PostEntity ¶
func (e *PostEvent) PostEntity() *entities.PostEntity
type PostPictureEvent ¶
type PostPictureEvent struct { *Event // contains filtered or unexported fields }
func (*PostPictureEvent) PostEntity ¶
func (e *PostPictureEvent) PostEntity() *entities.PostEntity
func (*PostPictureEvent) PostPictureEntity ¶
func (e *PostPictureEvent) PostPictureEntity() *entities.FileEntity
type PostTagEvent ¶
type PostTagEvent struct { *Event // contains filtered or unexported fields }
func (*PostTagEvent) PostEntity ¶
func (e *PostTagEvent) PostEntity() *entities.PostEntity
PostEntity
type PostVideoEvent ¶
type PostVideoEvent struct { *Event // contains filtered or unexported fields }
func (*PostVideoEvent) PostEntity ¶
func (e *PostVideoEvent) PostEntity() *entities.PostEntity
func (*PostVideoEvent) PostVideoEntity ¶
func (e *PostVideoEvent) PostVideoEntity() *entities.FileEntity
type UserEvent ¶
type UserEvent struct { *Event // contains filtered or unexported fields }
func (*UserEvent) UserEntity ¶
func (e *UserEvent) UserEntity() *entities.UserEntity
type UserPictureEvent ¶
type UserPictureEvent struct { *Event // contains filtered or unexported fields }
func (*UserPictureEvent) UserEntity ¶
func (e *UserPictureEvent) UserEntity() *entities.UserEntity
func (*UserPictureEvent) UserPictureEntity ¶
func (e *UserPictureEvent) UserPictureEntity() *entities.FileEntity
Source Files ¶
Click to show internal directories.
Click to hide internal directories.