Versions in this module Expand all Collapse all v1 v1.0.13 Dec 5, 2026 Changes in this version + func NativeError(lang, text string) v1.0.12 Dec 4, 2026 v1.0.11 Dec 2, 2026 v1.0.10 Dec 2, 2026 Changes in this version + const AskTimeout + const ErrAlreadyRunning + const ErrStartFailed + const PhaseConnecting + const PhaseError + const PhaseReady + const PhaseSetup + const PhaseStopped + func SystemLang() string + type App struct + func NewApp(cfg AppConfig) *App + func (a *App) Configure(mode, server string) error + func (a *App) Decide(n int, allow bool) error + func (a *App) Disconnect(id int) error + func (a *App) Done() <-chan struct{} + func (a *App) InstallFFmpeg() error + func (a *App) Regenerate() error + func (a *App) SetOption(name string, on bool) error + func (a *App) Start() + func (a *App) State() State + func (a *App) Stop() + func (a *App) Subscribe() (<-chan struct{}, func()) + type AppConfig struct + AskTimeout time.Duration + Dir string + FFmpeg *ffmpeg.Installer + Host func(*hostd.Config) + Logger *slog.Logger + NoSignal bool + Prompt func(ctx context.Context, r Request) (allow, ok bool) + Signal string + type Controller interface + Configure func(mode, server string) error + Decide func(n int, allow bool) error + Disconnect func(id int) error + InstallFFmpeg func() error + Regenerate func() error + SetOption func(name string, on bool) error + State func() State + Stop func() + Subscribe func() (changed <-chan struct{}, cancel func()) + type Options struct + Advanced bool + Files bool + Input bool + func DefaultOptions() Options + type Presence struct + Bye bool + Gone time.Time + Seen bool + Viewers int + type Request struct + Action string + Auth string + Device string + From string + Grant string + Identity string + Left int + N int + Name string + type Server struct + func NewServer(ctl Controller, lang string, log *slog.Logger) (*Server, error) + func (s *Server) Close() + func (s *Server) OnLang(fn func(lang string)) + func (s *Server) Presence() Presence + func (s *Server) PresenceChanged() <-chan struct{} + func (s *Server) Serve() error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) URL() string + type SessionInfo struct + Device string + From string + ID int + Identity string + Name string + Path string + Seconds int + type State struct + Addresses []string + AskTimeout int + Device string + Error string + ErrorCode string + FFmpeg ffmpeg.UIState + ID string + NoFFmpeg bool + Online bool + Options Options + OtherID string + Password string + Phase string + Relay bool + Requests []Request + Server string + Sessions []SessionInfo + Transport string + Version string + Waited int