lobbyui

package
v0.0.0-...-1c2eb0b Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchSessions

func FetchSessions(baseURL string) tea.Cmd

Commands

func New

func New(wsURL, apiURL string) tea.Model

func NewHelpModel

func NewHelpModel() model

Types

type JamConnected

type JamConnected struct {
	WS    *websocket.Conn
	JamID string
}

type Model

type Model struct {
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

Init needed to satisfy Model interface. It doesn't seem to be called on sub-models.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Session

type Session struct {
	Id   string `json:"id"` // TODO: Need to fix the API to return "id"
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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