global

package
v0.0.0-...-fee78ac Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HomePath     string
	Uid          uint32
	Gid          uint32
	Pid          = os.Getpid()
	StartAt      = time.Now().UnixNano()
	Protocol     = "http"
	CaCertPool   *x509.CertPool
	SkipVerify   bool
	EnableHTTPS  bool
	Architecture string
	Os           string
)

Functions

func InitGlobalVariable

func InitGlobalVariable()

Types

type Time

type Time struct {
	// contains filtered or unexported fields
}
var TIME Time = Time{
	// contains filtered or unexported fields
}

func (*Time) ObNow

func (t *Time) ObNow() (time.Time, error)

func (*Time) SqliteNow

func (t *Time) SqliteNow() (time.Time, error)

type VirtualClock

type VirtualClock struct {
	// contains filtered or unexported fields
}

func (*VirtualClock) Now

func (vc *VirtualClock) Now() (time.Time, error)

func (*VirtualClock) Sync

func (vc *VirtualClock) Sync() (err error)

Jump to

Keyboard shortcuts

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