tidb_or_mysql

package
v0.0.0-...-73f8a9c Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClock

func SetClock(impl ClockInf)

Types

type ClockInf

type ClockInf interface {
	Now() time.Time
	NowUnix() int64
}
var Clock ClockInf

type Pagination

type Pagination struct {
	Offset int    `json:"offset"`
	Limit  int    `json:"limit"`
	Key    string `json:"key"`

	Operator string `json:"operator"`
}

type RealClock

type RealClock struct{}

func (RealClock) After

func (RealClock) After(d time.Duration) <-chan time.Time

func (RealClock) Now

func (RealClock) Now() time.Time

func (RealClock) NowUnix

func (RealClock) NowUnix() int64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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