models

package
v0.0.0-...-560f09a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddStreakXPMsg

type AddStreakXPMsg struct {
	ID      int64
	OwnerID int64
}

type BroadcastMessage

type BroadcastMessage struct {
	InitMessage string `json:"init_message"`
}

type BroadcastNotification

type BroadcastNotification struct {
	Notification string `json:"notification"`
}

type ChatKickMsg

type ChatKickMsg struct {
	ChatID int64 `json:"chat_id"`
}

type ChatUpdateEvent

type ChatUpdateEvent int
const (
	ChatUpdateEventNameChange ChatUpdateEvent = iota
	ChatUpdateEventUserAdd
	ChatUpdateEventUserRemove
	ChatUpdateEventDeleted
)

type ChatUpdatedEventMsg

type ChatUpdatedEventMsg struct {
	Chat                           *models.ChatFrontend `json:"chat"`
	UpdateEvents                   []ChatUpdateEvent    `json:"update_events"`
	OldName                        string               `json:"old_name"`
	AddedUsers                     []string             `json:"added_users"`
	RemovedUsers                   []string             `json:"removed_users"`
	Updater                        string               `json:"updater"`
	UpdaterIcon                    string               `json:"updater_icon"`
	UpdaterBackground              string               `json:"updater_background"`
	UpdaterBackgroundRenderInFront bool                 `json:"updater_background_render_in_front"`
	UpdaterBackgroundPalette       string               `json:"updater_background_palette"`
	UpdaterPro                     bool                 `json:"updater_pro"`
}

type CreateWorkspaceMsg

type CreateWorkspaceMsg struct {
	WorkspaceID int64
	OwnerID     int64
	OwnerEmail  string
	OwnerName   string
	Disk        int
	CPU         int
	Memory      int
	Container   string
	AccessUrl   string
}

type DestroyWorkspaceMsg

type DestroyWorkspaceMsg struct {
	ID      int64
	OwnerID int64
}

type ForgetConnMsg

type ForgetConnMsg struct {
	WorkspaceID int64 `json:"workspace_id"`
	AgentID     int64 `json:"conn_id"`
}

type NewChatMsg

type NewChatMsg struct {
	Chat models.Chat `json:"chat"`
}

type NewMessageMsg

type NewMessageMsg struct {
	Message models.ChatMessage `json:"message"`
}

type StartWorkspaceMsg

type StartWorkspaceMsg struct {
	ID int64
}

type StopWorkspaceMsg

type StopWorkspaceMsg struct {
	ID              int64
	OwnerID         int64
	WorkspaceFailed bool
}

type WorkspaceStatusUpdateMsg

type WorkspaceStatusUpdateMsg struct {
	Workspace *models.WorkspaceFrontend `json:"workspace"`
}

Jump to

Keyboard shortcuts

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