global

package
v0.0.0-...-61ee147 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 12 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
	EnableClientAuth bool // require and verify client certificates (mTLS) when true
	// OutboundMTLSKeyPair is loaded in init() when EnableClientAuth is true; used by HTTP clients.
	OutboundMTLSKeyPair tls.Certificate
	EnableTelemetry     bool
	Architecture        string
	Os                  string
	ObproxyHomePath     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