ats

package
v2.12.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

ats controls the go routines for the access time service. This allows more efficient unixnano operations for cache access times. We will have one per binary (usually per server).

Index

Constants

View Source
const TickInterval = 100 * time.Millisecond

Update every 100ms for gathering access time in unix nano.

Variables

This section is empty.

Functions

func AccessTime

func AccessTime() int64

Will load the access time from an atomic. If no one has registered this will return 0 or stale data. It is the responsibility of the user to properly register and unregister.

func Register

func Register()

Register usage. This will happen on filestore creation.

func Unregister

func Unregister()

Unregister usage. We will shutdown the go routine if no more registered users.

Types

This section is empty.

Jump to

Keyboard shortcuts

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