Documentation ¶
Overview ¶
Package atomicTypes provides object locking / unlocking for setting and getting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicBool ¶
type AtomicBool struct {
// contains filtered or unexported fields
}
AtomicBool provides an bool object that is lock safe.
func (*AtomicBool) ToggleTrue ¶
func (obj *AtomicBool) ToggleTrue() (changed bool)
ToggleTrue sets the bool value only if the check back true; return if the value was set
type AtomicBoolArray ¶
type AtomicBoolArray struct {
// contains filtered or unexported fields
}
AtomicBoolArray provides a []bool object that is lock safe.
func (*AtomicBoolArray) Get ¶
func (obj *AtomicBoolArray) Get() (value []bool)
Get returns the []bool value
func (*AtomicBoolArray) Set ¶
func (obj *AtomicBoolArray) Set(value []bool)
Set sets the []bool value
func (*AtomicBoolArray) SetByIndex ¶
func (obj *AtomicBoolArray) SetByIndex(index int, value bool)
SetByIndex sets a bool by index value
type AtomicByteArray ¶
type AtomicByteArray struct {
// contains filtered or unexported fields
}
AtomicByteArray provides a []byte object that is lock safe.
func (*AtomicByteArray) Get ¶
func (obj *AtomicByteArray) Get() (value []byte)
Get returns the []byte value
func (*AtomicByteArray) Set ¶
func (obj *AtomicByteArray) Set(value []byte)
Set sets the []byte value
type AtomicFloat64 ¶
type AtomicFloat64 struct {
// contains filtered or unexported fields
}
AtomicFloat64 provides a float64 object that is lock safe.
func (*AtomicFloat64) Get ¶
func (obj *AtomicFloat64) Get() (value float64)
Get returns the float64 value
type AtomicInt ¶
type AtomicInt struct {
// contains filtered or unexported fields
}
AtomicInt provides an int object that is lock safe.
type AtomicString ¶
type AtomicString struct {
// contains filtered or unexported fields
}
AtomicString provides a string object that is lock safe.
func (*AtomicString) Get ¶
func (obj *AtomicString) Get() (value string)
Get returns the string value
type AtomicTime ¶
type AtomicTime struct {
// contains filtered or unexported fields
}
AtomicTime provides a time.Time object that is lock safe.
func (*AtomicTime) Get ¶
func (obj *AtomicTime) Get() (value time.Time)
Get returns the time.Time value
type AtomicUInt16 ¶
type AtomicUInt16 struct {
// contains filtered or unexported fields
}
AtomicUInt16 provides an uint16 object that is lock safe.
type AtomicUInt32 ¶
type AtomicUInt32 struct {
// contains filtered or unexported fields
}
AtomicUInt32 provides an uint16 object that is lock safe.