entity

package
v0.0.0-...-f349414 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMessage

type ChatMessage struct {
	ChatroomID string    `json:"chatroom_id"`
	UserID     string    `json:"user_id"`
	Content    string    `json:"content"`
	Username   string    `json:"username"`
	CreatedAt  time.Time `json:"created_at"`
}

func (*ChatMessage) ToJSON

func (cm *ChatMessage) ToJSON() ([]byte, error)

type ID

type ID = uuid.UUID

func NewID

func NewID() ID

func ParseID

func ParseID(s string) (ID, error)

Jump to

Keyboard shortcuts

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