cache

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache is our application cache for clients.

func (*Cache) Init

func (c *Cache) Init()

func (*Cache) Pull

func (c *Cache) Pull(id int) (Item, bool)

func (*Cache) Push

func (c *Cache) Push(id int, start time.Time)

type Item

type Item struct {
	Start time.Time
}

Item stores information about a pinging.

Jump to

Keyboard shortcuts

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