Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoute ¶ added in v1.40.0
func RegisterRoute(fn RouteFn)
RegisterRoute wires an additional route function. The parent api.Route invokes every registered function after its own wiring is done. Consumers who want the route must blank-import the sub-module (e.g. `import _ "github.com/hanzoai/commerce/thirdparty/ethereum/api"`).
Types ¶
type RouteFn ¶ added in v1.40.0
type RouteFn func(r router.Router, args ...gin.HandlerFunc)
RouteFn is an optional side-car wirer for API routes that don't ship in-tree — typically sub-modules like thirdparty/ethereum which would otherwise transitively pull heavy deps (geth, warp, etc.) into consumers that don't need them.
Click to show internal directories.
Click to hide internal directories.