Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LexicalOrderedMessageIDs ¶ added in v1.1.0
type LexicalOrderedMessageIDs MessageIDs
LexicalOrderedOutputs are MessageIDs ordered in lexical order.
func (LexicalOrderedMessageIDs) Len ¶ added in v1.1.0
func (l LexicalOrderedMessageIDs) Len() int
func (LexicalOrderedMessageIDs) Less ¶ added in v1.1.0
func (l LexicalOrderedMessageIDs) Less(i, j int) bool
func (LexicalOrderedMessageIDs) Swap ¶ added in v1.1.0
func (l LexicalOrderedMessageIDs) Swap(i, j int)
type MessageID ¶ added in v1.0.0
type MessageID []byte
MessageID is the ID of a Message.
func MessageIDFromArray ¶ added in v1.0.0
MessageIDFromArray creates a MessageID from a byte array.
func MessageIDFromHex ¶ added in v1.0.0
MessageIDFromHex creates a MessageID from a hex string representation.
func MessageIDFromMapKey ¶ added in v1.0.0
MessageIDFromMapKey creates a MessageID from a map key representation.
func MessageIDFromSlice ¶ added in v1.0.0
MessageIDFromSlice creates a MessageID from a byte slice.
func NullMessageID ¶ added in v1.0.5
func NullMessageID() MessageID
NullMessageID returns the ID of the genesis message.
func (MessageID) MarshalBinary ¶ added in v1.0.0
MarshalBinary implements the encoding.BinaryMarshaler interface.
type MessageIDs ¶ added in v1.0.0
type MessageIDs []MessageID
MessageIDs is a slice of MessageID.
func MessageIDsFromHex ¶ added in v1.0.0
func MessageIDsFromHex(hexStrings []string) (MessageIDs, error)
MessageIDsFromHex creates a slice of MessageIDs from a slice of hex string representations.
func MessageIDsFromSliceOfArrays ¶ added in v1.0.0
func MessageIDsFromSliceOfArrays(b iotago.MessageIDs) MessageIDs
MessageIDsFromSliceOfArrays creates a slice of MessageIDs from a slice of arrays.
func (MessageIDs) RemoveDupsAndSortByLexicalOrder ¶ added in v1.0.0
func (m MessageIDs) RemoveDupsAndSortByLexicalOrder() MessageIDs
RemoveDupsAndSortByLexicalOrder returns a new slice of MessageIDs sorted by lexical order and without duplicates.
func (MessageIDs) ToHex ¶ added in v1.0.0
func (m MessageIDs) ToHex() []string
ToHex converts the MessageIDs to their hex string representation.
func (MessageIDs) ToSliceOfArrays ¶ added in v1.0.0
func (m MessageIDs) ToSliceOfArrays() iotago.MessageIDs
ToSliceOfArrays converts the MessageIDs to a slice of byte arrays.
func (MessageIDs) ToSliceOfSlices ¶ added in v1.0.0
func (m MessageIDs) ToSliceOfSlices() [][]byte
ToSliceOfSlices converts the MessageIDs to a slice of byte slices.