model

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conversation

type Conversation struct {
	ConversationID event.ConversationID

	ID           string    `json:"id"`
	Title        string    `json:"title"`
	AvatarURL    *string   `json:"avatarURL"`
	CreationTime time.Time `json:"creationTime"`
}

type Message

type Message struct {
	MessageID      event.MessageID
	SenderID       event.UserID
	ConversationID event.ConversationID

	ID          string    `json:"id"`
	Body        string    `json:"body"`
	SendingTime time.Time `json:"sendingTime"`
}

type MessageEdit

type MessageEdit struct {
	EditorID event.UserID

	Time         time.Time `json:"time"`
	PreviousBody string    `json:"previousBody"`
}

type Session

type Session struct {
	UserID event.UserID

	ID           string    `json:"id"`
	IP           string    `json:"ip"`
	UserAgent    string    `json:"userAgent"`
	CreationTime time.Time `json:"creationTime"`
}

type User

type User struct {
	UserID event.UserID

	ID           string    `json:"id"`
	Username     string    `json:"username"`
	DisplayName  string    `json:"displayName"`
	CreationTime time.Time `json:"creationTime"`
	AvatarURL    *string   `json:"avatarURL"`
}

Jump to

Keyboard shortcuts

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