Documentation
¶
Overview ¶
Package transport defines the universal boundary interface for Nexss applications. Concrete adapters (thttp, tcli, tbus, cron, tworker) translate incoming network or CLI invocations into typed action.Executable dispatches.
Index ¶
Constants ¶
View Source
const ( HeaderRequestID = "X-Request-ID" HeaderExecutionID = "X-Execution-ID" HeaderTraceID = "X-Trace-ID" HeaderSpanID = "X-Span-ID" )
Standard transport-level correlation headers and keys.
Variables ¶
This section is empty.
Functions ¶
func MapToHTTPStatus ¶
MapToHTTPStatus converts an xerr.Kind to its corresponding standard HTTP status code.
Types ¶
type Transport ¶
type Transport interface {
fmt.Stringer
// CanHandle reports whether this transport can process the given routing binding.
CanHandle(b action.Binding) bool
// Mount registers actions into the transport's internal routing table.
Mount(actions []action.AnyAction)
// Do starts the transport listener loop and blocks until ctx is canceled.
Do(ctx context.Context, v any) (any, error)
}
Transport defines the universal lifecycle and routing contract for protocol listeners.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bus provides a lightweight, type-safe in-process message bus.
|
Package bus provides a lightweight, type-safe in-process message bus. |
|
mediator
Package mediator provides a CQRS-style mediator.
|
Package mediator provides a CQRS-style mediator. |
|
examples
|
|
|
01_one_action_four_protocols
command
|
|
|
02_realtime_dashboard
command
|
|
|
03_background_workers_and_cron
command
|
|
Click to show internal directories.
Click to hide internal directories.