Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// The current version of this software.
Version = "0.0.1"
)
Functions ¶
This section is empty.
Types ¶
type AtomicBool ¶
type AtomicBool struct {
// contains filtered or unexported fields
}
func (*AtomicBool) Get ¶
func (ab *AtomicBool) Get() bool
func (*AtomicBool) Set ¶
func (ab *AtomicBool) Set(v bool)
type AtomicString ¶ added in v1.1.0
type AtomicString struct {
// contains filtered or unexported fields
}
AtomicString allows for reading/writing to a given struct field without having to worry about a potential race condition scenario. Under the hood it uses a simple sync.RWMutex to control access to the value.
func NewAtomicString ¶ added in v1.1.0
func NewAtomicString(v string) *AtomicString
func (*AtomicString) Load ¶ added in v1.1.0
func (as *AtomicString) Load() string
Loads the string value and returns it.
func (*AtomicString) MarshalText ¶ added in v1.1.0
func (as *AtomicString) MarshalText() ([]byte, error)
func (*AtomicString) Store ¶ added in v1.1.0
func (as *AtomicString) Store(v string)
Stores the string value passed atomically.
func (*AtomicString) UnmarshalText ¶ added in v1.1.0
func (as *AtomicString) UnmarshalText(b []byte) error
type Information ¶
type Information struct { Version string `json:"version"` KernelVersion string `json:"kernel_version"` Architecture string `json:"architecture"` OS string `json:"os"` CpuCount int `json:"cpu_count"` }
func GetSystemInformation ¶
func GetSystemInformation() (*Information, error)
Click to show internal directories.
Click to hide internal directories.