timeMock

package
v1.1.76 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now(ctx context.Context) time.Time

func SetOption

func SetOption(opt *Option) error

func SetTime

func SetTime(ctx context.Context, ts int64) error

Types

type Option

type Option struct {
	RedisClient redis.UniversalClient
	KeyPrefix   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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