Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractID ¶
ExtractID extracts `possibleIDFieldNames` from `v` - an arbitrary struct.
NOTE: Only exported fields are considered.
func GenerateIDBasedOnContent ¶
GenerateIDBasedOnContent generates MD5 hash (content-based) for message ID. Good to be used to avoid duplicated messages.
func GenerateUUID ¶
func GenerateUUID() string
GenerateUUID generates a RFC4122 UUID and DCE 1.1: Authentication and Security Services.
Types ¶
type IMeta ¶
type IMeta[C any] interface { // GetDescription returns the `Description` of the processor. GetDescription() string // GetName returns the `Name` of the processor. GetName() string // GetState returns the `State` of the processor. GetState() status.Status // SetState sets the `State` of the processor. SetState(state status.Status) }
IMeta defines what a `Processor` must do.
Click to show internal directories.
Click to hide internal directories.