Versions in this module Expand all Collapse all v0 v0.1.2 Oct 1, 2026 v0.1.1 Oct 1, 2026 Changes in this version + const TypeBinary + const TypeError + const TypeHTML + const TypeImage + const TypeInfo + const TypeMenu + const TypeText + func RunBrowser(s ssh.Session, srv *Server, member string) error + type Content interface + ListUsers func(limit int) ([]store.User, error) + NewsArticleByNum func(group string, num int64) (store.NewsArticle, bool, error) + NewsArticlesRange func(group string, from, to int64) ([]store.NewsArticle, error) + NewsGroups func() ([]store.NewsGroup, error) + type Item struct + Display string + Host string + Port string + Selector string + Type byte + type Kind int + const KindBinary + const KindError + const KindMenu + const KindText + type Menu struct + Items []Item + func NewMenu(host, port string) *Menu + func (m *Menu) Info(text string) *Menu + func (m *Menu) Len() int + func (m *Menu) Link(itemType byte, display, selector string) *Menu + func (m *Menu) Render() string + func (m *Menu) URL(display, url string) *Menu + type Response struct + Data []byte + Kind Kind + Menu *Menu + Text string + func (r Response) Wire() []byte + type Server struct + func New(c Content, dataDir, host, port string, pubGroups []string, ...) *Server + func (s *Server) Resolve(selector string, authed bool, member string) Response + func (s *Server) Serve(ctx context.Context, addr string) error