Documentation ¶
Index ¶
Constants ¶
View Source
const ( MajorVersion = 0 MinorVersion = 1 PatchVersion = 0 VersionSuffix = "-dev" // -alpha -alpha.1 -beta -rc -rc.1 )
rule of trpc version 1. MAJOR version when you make incompatible API changes; 2. MINOR version when you add functionality in a backwards-compatible manner; 3. PATCH version when you make backwards-compatible bug fixes; 4. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format; alpha 0.1.0-alpha beta 0.1.0-beta release candidate 0.1.0-rc release 0.1.0
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
common
|
|
convert
Package convert some parameter conversion utility functions.
|
Package convert some parameter conversion utility functions. |
errs
Package errs API gateway framework error related definitions, related methods
|
Package errs API gateway framework error related definitions, related methods |
gwmsg
Package gwmsg defines gateway message
|
Package gwmsg defines gateway message |
gwmsg/mock
Package mock_gwmsg is a generated GoMock package.
|
Package mock_gwmsg is a generated GoMock package. |
http
Package http contains utility methods related to HTTP.
|
Package http contains utility methods related to HTTP. |
plugin
Package plugin refers to constants and common methods related to gateway plugins.
|
Package plugin refers to constants and common methods related to gateway plugins. |
core
|
|
config
Package config provides gateway configuration related functions
|
Package config provides gateway configuration related functions |
config/configmock
Package configmock is a generated GoMock package.
|
Package configmock is a generated GoMock package. |
entity
Package entity defines entities related to route configuration.
|
Package entity defines entities related to route configuration. |
loader/file
Package file provides a router config loader with file.
|
Package file provides a router config loader with file. |
router
Package router Gateway routing module
|
Package router Gateway routing module |
router/mock
Package mock_router is a generated GoMock package.
|
Package mock_router is a generated GoMock package. |
rule
Package rule encapsulates a simple rule matching mechanism for dynamic parameter matching
|
Package rule encapsulates a simple rule matching mechanism for dynamic parameter matching |
service/fhttp/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
service/protocol/http
Package http converts fasthttp requests to net/http requests It refers to the logic of net/http/httputil/reverseproxy.go
|
Package http converts fasthttp requests to net/http requests It refers to the logic of net/http/httputil/reverseproxy.go |
service/protocol/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
loader/etcd
Module
|
|
service/protocol/grpc
Module
|
|
example
|
|
loader/upstream
example of gateway
|
example of gateway |
pool/objectpool
Package objectpool provides object pool.
|
Package objectpool provides object pool. |
reuseport
Package reuseport provides a function that returns a net.Listener powered by a net.FileListener with a SO_REUSEPORT option set to the socket.
|
Package reuseport provides a function that returns a net.Listener powered by a net.FileListener with a SO_REUSEPORT option set to the socket. |
Package plugin defines gateway plugins.
|
Package plugin defines gateway plugins. |
demo
Package demo is an example of developing a gateway plugin.
|
Package demo is an example of developing a gateway plugin. |
mock
Package mock_plugin is a generated GoMock package.
|
Package mock_plugin is a generated GoMock package. |
accesslog
Module
|
|
batchrequest
Module
|
|
cors
Module
|
|
devenv
Module
|
|
limiter/polaris
Module
|
|
logreplay
Module
|
|
mocking
Module
|
|
polaris/canaryrouter
Module
|
|
polaris/metarouter
Module
|
|
polaris/setrouter
Module
|
|
redirect
Module
|
|
routercheck
Module
|
|
traceid
Module
|
|
transformer/request
Module
|
|
transformer/response
Module
|
|
transformer/trpcerr2body
Module
|
Click to show internal directories.
Click to hide internal directories.