web

package
v1.0.3-0...-7e9eecf Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer() *Server

func (*Server) Start

func (s *Server) Start(port int) error

type TimerSession

type TimerSession struct {
	ID          string `json:"id"`
	WorkTime    int    `json:"work_time"`
	BreakTime   int    `json:"break_time"`
	Sessions    int    `json:"sessions"`
	CurrentSess int    `json:"current_session"`
	IsRunning   bool   `json:"is_running"`
	IsPaused    bool   `json:"is_paused"`
	IsBreak     bool   `json:"is_break"`
	TimeLeft    int    `json:"time_left"`
	Profile     string `json:"profile"`
}

Jump to

Keyboard shortcuts

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