validate

package
v0.5.34 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Zlib Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Empty = Data{}

Functions

This section is empty.

Types

type Data

type Data struct {
	Key    string `form:"key" binding:"required" json:"key"`
	Data   string `form:"data" binding:"required" json:"data"`
	Expire int64  `form:"expireIn" binding:"-" json:"expireIn"`
}

func New

func New(key string, data string, expire int64) Data

New *

@param expire Nanoseconds 纳秒

func (*Data) IsExpired

func (v *Data) IsExpired() bool

func (*Data) IsValid

func (v *Data) IsValid() bool

Jump to

Keyboard shortcuts

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