api

package
v1.42.27 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 67 Imported by: 0

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"`).

func Route

func Route(api router.Router)

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.

Jump to

Keyboard shortcuts

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