client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Windows OSType = "windows"
	Linux   OSType = "linux"
	MacOS   OSType = "darwin"
	Android OSType = "android"

	KDE DesktopType = "KDE"
)

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Start

func (c *Client) Start()

type DesktopType

type DesktopType string

type OSType

type OSType string

type ServerConnection

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

func NewServerConnection

func NewServerConnection(cfg *pkg.AppConfig) *ServerConnection

func (*ServerConnection) Connect

func (s *ServerConnection) Connect()

func (*ServerConnection) SendUpdate

func (s *ServerConnection) SendUpdate(payload *UpdatePayload) error

type UpdatePayload

type UpdatePayload struct {
	Title string `json:"title"`
	OS    OSType `json:"os"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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