cachetime

package
v0.0.0-...-693896e Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheTime

type CacheTime time.Time

CacheTime is the data type to represent time in cache, represented by Unix millis. It is castable to time.Time

func (CacheTime) MarshalJSON

func (ct CacheTime) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*CacheTime) Scan

func (ct *CacheTime) Scan(value interface{}) error

Scan implements the Scanner interface.

func (CacheTime) Time

func (ct CacheTime) Time() time.Time

Time returns the time object inside the CacheTime

func (*CacheTime) UnmarshalJSON

func (ct *CacheTime) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements json.Unmarshaler interface

func (CacheTime) Value

func (ct CacheTime) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NCacheTime

type NCacheTime null.Time

NCacheTime is nullable CacheTime. It is castable to null.Time

func (NCacheTime) MarshalJSON

func (ct NCacheTime) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (*NCacheTime) Scan

func (ct *NCacheTime) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NCacheTime) UnmarshalJSON

func (ct *NCacheTime) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements json.Unmarshaler interface

func (NCacheTime) Value

func (ct NCacheTime) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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