Documentation ¶
Index ¶
- type Bool
- type Duration
- func (d *Duration) Add(n time.Duration) time.Duration
- func (d *Duration) CAS(o, n time.Duration) bool
- func (d *Duration) Load() time.Duration
- func (d *Duration) Store(v time.Duration)
- func (d *Duration) String() string
- func (d *Duration) Sub(n time.Duration) time.Duration
- func (d *Duration) Swap(o time.Duration) time.Duration
- type Error
- type Int32
- type Int64
- type String
- type Uint32
- func (i *Uint32) Add(n uint32) uint32
- func (i *Uint32) CAS(old, new uint32) bool
- func (i *Uint32) Dec() uint32
- func (i *Uint32) Inc() uint32
- func (i *Uint32) Load() uint32
- func (i *Uint32) Store(n uint32)
- func (i *Uint32) String() string
- func (i *Uint32) Sub(n uint32) uint32
- func (i *Uint32) Swap(n uint32) uint32
- type Uint64
- func (i *Uint64) Add(n uint64) uint64
- func (i *Uint64) CAS(old, new uint64) bool
- func (i *Uint64) Dec() uint64
- func (i *Uint64) Inc() uint64
- func (i *Uint64) Load() uint64
- func (i *Uint64) MarshalJSON() ([]byte, error)
- func (i *Uint64) Store(n uint64)
- func (i *Uint64) String() string
- func (i *Uint64) Sub(n uint64) uint64
- func (i *Uint64) Swap(n uint64) uint64
- func (i *Uint64) UnmarshalJSON(b []byte) error
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool is an atomic type-safe wrapper for bool values.
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
Duration is an atomic type-safe wrapper for time.Duration values.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an atomic type-safe wrapper for error values.
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
Int32 is an atomic wrapper around int32.
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 is an atomic wrapper around int64.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is an atomic type-safe wrapper for string values.
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
Uint32 is an atomic wrapper around uint32.
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
Uint64 is an atomic wrapper around uint64.
func (*Uint64) MarshalJSON ¶
MarshalJSON encodes the wrapped uint64 into JSON.
func (*Uint64) UnmarshalJSON ¶
UnmarshalJSON decodes JSON into the wrapped uint64.
type Value ¶
Value shadows the type of the same name from sync/atomic https://godoc.org/sync/atomic#Value
Click to show internal directories.
Click to hide internal directories.