sessions

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 StaleStore

type StaleStore interface {
	MarkStale(ctx context.Context, cutoff, now time.Time) (int64, error)
}

type Sweeper

type Sweeper struct {
	Store      StaleStore
	Now        func() time.Time
	StaleAfter time.Duration
}

func (Sweeper) Run

func (s Sweeper) Run(ctx context.Context, interval time.Duration) error

func (Sweeper) RunOnce

func (s Sweeper) RunOnce(ctx context.Context) (int64, error)

Jump to

Keyboard shortcuts

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