Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageSort ¶
type MessageSort struct { Messages []api.MailboxMessagesMessage // contains filtered or unexported fields }
MessageSort is a generic message sorter
func NewMessageSort ¶
func NewMessageSort(key bmcrypto.PrivKey, messages []api.MailboxMessagesMessage, field SortField, asc bool) MessageSort
NewMessageSort will create a new sorted based on the given sortfield and ascending/descending order
func (*MessageSort) Len ¶
func (ms *MessageSort) Len() int
Len returns the length of the message slice
func (*MessageSort) Less ¶
func (ms *MessageSort) Less(i, j int) bool
Less will return if message i is less then message j through the sorter function
func (*MessageSort) Swap ¶
func (ms *MessageSort) Swap(i, j int)
Swap will swap two messages in the slice
Click to show internal directories.
Click to hide internal directories.