Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthOption ¶
func GetAuthOption(opt *common.APIAuth, fn func(opts map[string]interface{}) map[string]interface{}) func(r *http.Request) auth.Options
GetAuthOption .
func RangeOpenAPIs ¶
func RangeOpenAPIs(pkgPrefix string, handler OneOpenAPIHandler) (err error)
RangeOpenAPIs .
func RangeOpenAPIsProxy ¶
func RangeOpenAPIsProxy(proxyHandler OneOpenAPIProxyHandler) error
RangeOpenAPIsProxy .
Types ¶
type OneOpenAPIHandler ¶
type OneOpenAPIHandler = func(serviceName, method, backendPath string, opt *common.OpenAPIOption) error
type OneOpenAPIProxyHandler ¶
type OneOpenAPIProxyHandler = func(method, publishPath, backendPath, serviceName string, opt *common.OpenAPIOption) error
Click to show internal directories.
Click to hide internal directories.