Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores registered task type handlers. It supports exact matches and pattern-based routing (e.g., "email:*"). Longest matching pattern wins, similar to net/http.ServeMux. It is safe for concurrent use.
func (*Registry) Get ¶
Get returns the handler definition for a task type. It first checks exact matches, then falls back to pattern matching (longest prefix wins).
Click to show internal directories.
Click to hide internal directories.