proxy

package
v0.0.0-...-ce61025 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Echo

func Echo(g *echo.Group, conf Config)

Echo registers GET /<path...> that proxies to https://api.odpt.org/<path...> with the configured consumerKey automatically appended to the query. Only the paths in allowedPaths are forwarded.

Types

type Config

type Config struct {
	// ODPTConsumerKey is the API key for https://api.odpt.org/ injected as
	// `acl:consumerKey` on every forwarded request. Empty disables the endpoint.
	ODPTConsumerKey string
}

Jump to

Keyboard shortcuts

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