utils

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImportMap

func NewImportMap() *importMap

func NewTitleMeta

func NewTitleMeta(inst core.Instance) core.TitleMeta

Types

type ImportMap

type ImportMap = *importMap

func (ImportMap) Add

func (i ImportMap) Add(specifier string, path string)

func (ImportMap) Generate

func (i ImportMap) Generate() (content []byte, hash []byte)

type KillTimer

type KillTimer = *killTimer

func NewKillTimer

func NewKillTimer(inst core.Instance) KillTimer

type Limiter

type Limiter = *limiter

Limiter is an approximate LFU limiter without time-series data. It keeps a bounded frequency ranking of active instance ids and returns the current tail id from Add when the configured limit is exceeded.

func NewLimiter

func NewLimiter(limit int) Limiter
type Navigator = *navigator

func NewNavigator

func NewNavigator(
	inst core.Instance,
	ctx context.Context,
) Navigator

Jump to

Keyboard shortcuts

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