controller

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(namesOnly bool, open bool) Controller

func (Controller) Collapse

func (s Controller) Collapse(ctx context.Context)

func (Controller) Expanded

func (s Controller) Expanded() doors.Beam[bool]

func (Controller) Input

func (s Controller) Input(render func(v string) gox.Elem) gox.Elem

func (Controller) RouteList

func (s Controller) RouteList(
	days func(w Window, set func(ctx context.Context, w Window)) gox.Elem,
	all func(input string, open func(ctx context.Context, kind SearchKind)) gox.Elem,
	names searchElem,
	messages searchElem,
	messagesAll searchElem,
) gox.Elem

func (Controller) RouteToggle

func (s Controller) RouteToggle(open gox.Elem, close gox.Elem, back gox.Elem) gox.Elem

func (Controller) SearchInput

func (s Controller) SearchInput(ctx context.Context, input string)

func (Controller) Show

func (s Controller) Show(el gox.Elem) gox.Elem

func (Controller) Toggle

func (s Controller) Toggle(ctx context.Context)

type SearchKind

type SearchKind int
const (
	SearchNames SearchKind
	SearchMessagesCurrent
	SearchMessagesAll
)

type Window

type Window struct {
	First string
	Last  string
}

Jump to

Keyboard shortcuts

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