entity

package
v0.0.0-...-aea78ab Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Username string `json:"username" example:"user-2024"`
	Time     uint64 `json:"time" example:"1711902448"`
	Content  string `json:"content" example:"hello!"`
}

type MessageWithErrorFlag

type MessageWithErrorFlag struct {
	Message
	Error bool `json:"error"`
}

type Segment

type Segment struct {
	Time uint64 `json:"time" example:"1711902448"`
	Data string `json:"data"`
	Size int    `json:"size" example:"15"`
	Num  int    `json:"num" example:"4"`
}

Jump to

Keyboard shortcuts

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