server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecentItem

type RecentItem struct {
	Path      string
	Timestamp time.Time
}

type RecentsList

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

func NewRecentsList

func NewRecentsList(cap int) *RecentsList

func (*RecentsList) Add

func (r *RecentsList) Add(path string)

func (*RecentsList) List

func (r *RecentsList) List() []RecentItem

type Server

type Server struct {
	Addr    string
	Recents *RecentsList
	Watcher *watcher.Hub
	// contains filtered or unexported fields
}

func New

func New(addr string) *Server

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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