model

package
v0.0.0-...-9d3578c Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageTypeText  = 1
	MessageTypeImage = 2
	MessageTypeStamp = 3
)

Variables

View Source
var MessageTypeStrings = map[string]MessageType{
	"text":  MessageTypeText,
	"image": MessageTypeImage,
	"stamp": MessageTypeStamp,
}

Functions

This section is empty.

Types

type Message

type Message struct {
	ID       string
	UserID   string
	Type     string
	Content  string
	PostedAt time.Time
}

type MessageType

type MessageType int

func (MessageType) String

func (m MessageType) String() string

type User

type User struct {
	ID         uuid.UUID
	Name       string
	Email      string
	Profile    string
	PictureURL string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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