models

package
v0.0.0-...-4602fbc Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 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 {
	Id       int    `json:"id"`
	ChatRoom string `json:"chatroom"`
	Sender   string `json:"sender"`
	Body     string `json:"body"`
	Created  int64  `json:"created"`
}

type Request

type Request struct {
	ChatRoom string
	Cursor   int64
	Limit    int32
	Reverse  bool
}

type Response

type Response struct {
	Messages   []*Message
	HasMore    *bool
	NextCursor *int64
}

Jump to

Keyboard shortcuts

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