idlog

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDLog

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

func NewIDLog

func NewIDLog(filename string, days int) *IDLog

func (*IDLog) Close

func (i *IDLog) Close()

func (*IDLog) Expire

func (i *IDLog) Expire() (count, deleted int)

func (*IDLog) Unique

func (i *IDLog) Unique(key []byte) (unique bool)

Unique tests the existance of a key and inserts if it's not there. The data inserted is a Gob'd expiry date

Jump to

Keyboard shortcuts

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