nane

package
v0.0.0-...-e54593c Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	Result interface{} `json:"result,omitempty"`
	Error  string      `json:"error,omitempty"`
}

type Message

type Message struct {
	Id      string    `json:"id,omitempty"`
	Room    string    `json:"room"`
	Created time.Time `json:"created,omitempty"`
	Sender  Sender    `json:"sender"`
	Text    string    `json:"text"`
}

type Ping

type Ping struct {
	Ping bool `json:"ping"`
}

type Pong

type Pong struct {
	Pong bool `json:"pong"`
}

type Room

type Room struct {
	Name        string   `json:"name"`
	LastMessage *Message `json:"last_message"`
}

type Sender

type Sender struct {
	Username string `json:"username"`
}

type Settings

type Settings struct {
	MaxMessageLength   int           `json:"max_message_length"`
	MaxRoomTitleLength int           `json:"max_room_title_length"`
	MaxUsernameLength  int           `json:"max_username_length"`
	Uptime             time.Duration `json:"uptime"`
}

Jump to

Keyboard shortcuts

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