veadotube

package
v0.0.0-...-0146c84 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceData

type InstanceData struct {
	Time   int64  `json:"time"`
	Name   string `json:"name"`
	Server string `json:"server"`
}

type Veadotube

type Veadotube struct {
	CurrentInstance InstanceData
	Connection      *websocket.Conn
	StateMap        map[string]string
}

func New

func New() (*Veadotube, error)

Select a running Veadotube instance from the user's home directory.

This function involves direct user input, and may return `nil` on an error or if multiple instances are available to be selected but the user selects none of them.

func (*Veadotube) Connect

func (v *Veadotube) Connect()

Connect to the Veadotube instance.

func (*Veadotube) SetState

func (v *Veadotube) SetState(state string)

Set the active Veadotube state to that with the provided state name.

Jump to

Keyboard shortcuts

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