hornet

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageID

type MessageID []byte

MessageID is the ID of a Message.

func MessageIDFromHex

func MessageIDFromHex(hexString string) (MessageID, error)

MessageIDFromHex creates a MessageID from a hex string representation.

func MessageIDFromMapKey

func MessageIDFromMapKey(mapKey string) MessageID

MessageIDFromMapKey creates a MessageID from a map key representation.

func MessageIDFromSlice

func MessageIDFromSlice(b []byte) MessageID

MessageIDFromSlice creates a MessageID from a byte slice.

func (MessageID) ToHex

func (m MessageID) ToHex() string

ToHex converts the MessageID to its hex representation.

func (MessageID) ToMapKey

func (m MessageID) ToMapKey() string

ToMapKey converts the MessageID to a string that can be used as a map key.

type MessageIDs

type MessageIDs []MessageID

MessageIDs is a slice of MessageID.

func (MessageIDs) ToHex

func (m MessageIDs) ToHex() []string

ToHex converts the MessageIDs to their hex string representation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL