Documentation
¶
Overview ¶
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- Variables
- func CheckForUpdatesAndPrintNotice()
- func GetApplicationDir() (string, error)
- func GetConfigPath() (string, error)
- func GetTimestamp() time.Time
- func GetVersion() string
- func IsWsl() bool
- func RandomClientID() string
- func RandomGUID() string
- func RandomInt(max int64) int64
- func RandomType() string
- func RandomUserID() string
- func RandomViewerCount() int64
- func SetVersion(v string)
- type List
- type Syscall
Constants ¶
This section is empty.
Variables ¶
var DefaultSyscall = Syscall{ Uname: syscall.Uname, }
Functions ¶
func CheckForUpdatesAndPrintNotice ¶ added in v1.1.23
func CheckForUpdatesAndPrintNotice()
Check Github's Releases API to see if we're running the latest version. If there's any errors, quietly allow it to fail.
func GetApplicationDir ¶
GetApplicationDir returns a string representation of the home path for use with configuration/data storage needs
func GetConfigPath ¶
GetConfigPath returns a string representation of the configuration's path
func GetTimestamp ¶
GetTimestamp returns the timestamp in UTC for use with signature creation and event firing.
func GetVersion ¶
func GetVersion() string
GetVersion retrieves the version number for use later in the version command and for request headers.
func RandomClientID ¶ added in v1.1.2
func RandomClientID() string
RandomClientID generates a fake client ID of length 30
func RandomGUID ¶
func RandomGUID() string
RandomGUID generates a random GUID for use with creating IDs in the local store and for mock events
func RandomType ¶ added in v1.1.2
func RandomType() string
RandomType generates a fake type; Either bits, subscription, or other, in roughly even distribution
func RandomUserID ¶
func RandomUserID() string
RandomUserID generates a random user ID from 1->100,000,000 for use in mock events
func RandomViewerCount ¶ added in v1.1.2
func RandomViewerCount() int64
RandomViewerCount generates a fake viewercount between 0->100,000
func SetVersion ¶
func SetVersion(v string)
SetVersion sets the version number for use later in the version command and for request headers.