command
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Fallback
How To
-
Run the "remote" application (not managed by Goblin):
cd example-plugins/fallback
go run main.go
-
In another terminal, run Goblin server with the example fallback routes:
goblin server -r example-fallback-routes.json
-
In another terminal, run the fallback application as a Goblin plugin:
cd example-plugins/fallback
go build -buildmode=plugin
goblin run -p ./fallback.so -d fallback
-
In another terminal, use curl with the Goblin subdomain:
> curl fallback.goblin:8081
I am running at 10.0.0.1:8081
-
In the terminal from step 3, use Ctrl-C to stop the plugin
-
Use the same curl command from step 4 to see how Goblin routes to the service running locally from main.go:
> curl fallback.goblin:8081
I am running at 0.0.0.0:8081
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.