Documentation ¶
Index ¶
- type Address
- type Bool
- type Duration
- type Float64
- type Hash
- type Int32
- type Int64
- type ListTransactionsResult
- func (at *ListTransactionsResult) Len() int
- func (at *ListTransactionsResult) Load() []btcjson.ListTransactionsResult
- func (at *ListTransactionsResult) Store(ltr []btcjson.ListTransactionsResult)
- func (at *ListTransactionsResult) Swap(n []btcjson.ListTransactionsResult) []btcjson.ListTransactionsResult
- type Time
- type Uint32
- type Uint64
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
Address is an atomic wrapper around util.Address
func NewAddress ¶
NewAddress creates a Hash.
type Hash ¶
type Hash struct {
*Value
}
Hash is an atomic wrapper around chainhash.Hash Note that there isn't really any reason to have CAS or arithmetic or comparisons as it is fine to do these non-atomically between Load / Store and they are (slightly) long operations)
func (*Hash) Load ¶
Load atomically loads the wrapped value. The returned value copied so as to prevent mutation by concurrent users of the atomic, as arrays, slices and maps are pass-by-reference variables
type ListTransactionsResult ¶
type ListTransactionsResult struct {
// contains filtered or unexported fields
}
ListTransactionsResult is an atomic wrapper around []btcjson.ListTransactionsResult
func NewListTransactionsResult ¶
func NewListTransactionsResult(ltr []btcjson.ListTransactionsResult) *ListTransactionsResult
NewListTransactionsResult creates a btcjson.ListTransactionsResult.
func (*ListTransactionsResult) Len ¶
func (at *ListTransactionsResult) Len() int
Len returns the length of the []btcjson.ListTransactionsResult
func (*ListTransactionsResult) Load ¶
func (at *ListTransactionsResult) Load() []btcjson.ListTransactionsResult
Load atomically loads the wrapped value. Note that it is copied and the stored value remains as it is
func (*ListTransactionsResult) Store ¶
func (at *ListTransactionsResult) Store(ltr []btcjson.ListTransactionsResult)
Store atomically stores the passed value. Note that it is copied and the passed value remains as it is
func (*ListTransactionsResult) Swap ¶
func (at *ListTransactionsResult) Swap(n []btcjson.ListTransactionsResult, ) []btcjson.ListTransactionsResult
Swap atomically swaps the wrapped chainhash.ListTransactionsResult and returns the old value.
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time is an atomic wrapper around time.Time https://godoc.org/time#Time