cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearExpiredBans added in v0.3.2

func ClearExpiredBans()

func Close added in v0.2.0

func Close()

func Init

func Init(cachePath string, logLevel int) error

func IsBanned added in v0.2.0

func IsBanned(key string) (bool, time.Time)

func SetBanned added in v0.2.0

func SetBanned(key string, hours int) error

func ShowUsing

func ShowUsing()

Types

type Banned added in v0.2.0

type Banned struct {
	Path    string `bow:"key"`
	Expires time.Time
}

Jump to

Keyboard shortcuts

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