expires

package
v0.0.0-...-3e75ef9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripMono

func StripMono(t *time.Time)

StripMono strip monotonic clocks

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