expires

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.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 DataExpires

type DataExpires interface {
	Data() interface{}
	Expires
}

func NewDataExpires

func NewDataExpires(data interface{}, dur time.Duration) DataExpires

type Expires

type Expires interface {
	IsExpires() bool
	GetExpires() time.Time
	SetExpires(e bool)
	fmt.Stringer
}

func NewExpires

func NewExpires(dur time.Duration) Expires

func NewExpiresAt

func NewExpiresAt(at time.Time) Expires

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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