Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectPaths ¶
CollectPaths walks over the struct type (recursively) and returns a slice of index paths. Each path points to exactly one (exported) sub-field.
func MakeAccountData ¶
func MakeAccountData(status basics.Status, algos basics.MicroAlgos) basics.AccountData
MakeAccountData returns a AccountData with non-empty voting fields for online accounts
func NearZeros ¶
NearZeros takes a sample in order to retrieve its type. It returns a slice of the same type in which each element of the slice is the same type as the sample, but exactly one field (or sub-field) is set to a non-zero value. It returns one example for every sub-field.
func OnlineAccountData ¶
func OnlineAccountData(u basics.AccountData) basics.OnlineAccountData
OnlineAccountData converts basics.AccountData to basics.OnlineAccountData. Account is expected to be Online otherwise it is cleared out. This function is intended for testing purposes only.
Types ¶
This section is empty.