event

package
v0.0.0-...-2887d17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationCreated

type ConversationCreated struct {
	ID           ConversationID
	Creator      UserID
	Participants []UserID
	Title        string
	AvatarURL    *url.URL
}

func (*ConversationCreated) Copy

Copy creates a deep copy

type ConversationID

type ConversationID = id.ID

ConversationID represents the unique identifier of a conversation

type ConversationUpdated

type ConversationUpdated struct {
	Conversation ConversationID
	Editor       UserID
	Title        *string
	AvatarURL    interface{} // nil | *url.URL
}

func (*ConversationUpdated) Copy

Copy creates a deep copy

type MessageDeleted

type MessageDeleted struct {
	Message MessageID
	Deletor UserID
	Reason  *string
}

func (*MessageDeleted) Copy

func (e *MessageDeleted) Copy() eventlog.Payload

Copy creates a deep copy

type MessageEdited

type MessageEdited struct {
	Message MessageID
	Editor  UserID
	Body    string
}

func (*MessageEdited) Copy

func (e *MessageEdited) Copy() eventlog.Payload

Copy creates a deep copy

type MessageID

type MessageID = id.ID

MessageID represents the unique identifier of a message

type MessageRead

type MessageRead struct {
	Message MessageID
	User    UserID
}

func (*MessageRead) Copy

func (e *MessageRead) Copy() eventlog.Payload

Copy creates a deep copy

type MessageSent

type MessageSent struct {
	ID           MessageID
	Body         string
	Sender       UserID
	Conversation ConversationID
}

func (*MessageSent) Copy

func (e *MessageSent) Copy() eventlog.Payload

Copy creates a deep copy

type SessionCreated

type SessionCreated struct {
	ID        sessid.SessionID
	User      UserID
	IP        string
	UserAgent string
}

func (*SessionCreated) Copy

func (e *SessionCreated) Copy() eventlog.Payload

Copy creates a deep copy

type SessionDestroyed

type SessionDestroyed struct {
	Session sessid.SessionID
}

func (*SessionDestroyed) Copy

func (e *SessionDestroyed) Copy() eventlog.Payload

Copy creates a deep copy

type UserCreated

type UserCreated struct {
	ID           UserID
	Username     username.Username
	DisplayName  string
	AvatarURL    *url.URL
	PasswordHash string
}

func (*UserCreated) Copy

func (e *UserCreated) Copy() eventlog.Payload

Copy creates a deep copy

type UserID

type UserID = id.ID

UserID represents the unique identifier of a user profile

type UserJoinedConversation

type UserJoinedConversation struct {
	User         UserID
	Conversation ConversationID
}

func (*UserJoinedConversation) Copy

Copy creates a deep copy

type UserLeftConversation

type UserLeftConversation struct {
	User         UserID
	Conversation ConversationID
}

func (*UserLeftConversation) Copy

Copy creates a deep copy

type UserRemovedFromConversation

type UserRemovedFromConversation struct {
	Conversation ConversationID
	Remover      UserID
	Removed      UserID
	Reason       *string
}

func (*UserRemovedFromConversation) Copy

Copy creates a deep copy

type UserUpdated

type UserUpdated struct {
	User        UserID
	Username    *username.Username
	DisplayName *string
	AvatarURL   interface{}
}

func (*UserUpdated) Copy

func (e *UserUpdated) Copy() eventlog.Payload

Copy creates a deep copy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL