Documentation
¶
Index ¶
Constants ¶
View Source
const ( RESTServerType = "rest" RPCServerType = "rpc" )
Server type constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESTConfig ¶ added in v0.2.1
type RESTConfig struct {
Method string // "gin", "fiber", etc.
Options []rest.ServerOptions
}
RESTConfig REST服务器配置
type RPCConfig ¶ added in v0.2.1
type RPCConfig struct {
Method string // "grpc", etc.
Options []rpc.ServerOptions
}
RPCConfig RPC服务器配置
Directories
¶
| Path | Synopsis |
|---|---|
|
rest-fiber/internal/auth
Basic Auth middleware
|
Basic Auth middleware |
|
rest-fiber/internal/pprof
this is a copy of https://github.com/gofiber/fiber/blob/main/middleware/pprof/config.go
|
this is a copy of https://github.com/gofiber/fiber/blob/main/middleware/pprof/config.go |
|
rest-gin/internal/auth
Basic Auth middleware
|
Basic Auth middleware |
|
rest-gin/internal/pprof
this is a copy of "https://github.com/gin-contrib/pprof/blob/master/pprof.go
|
this is a copy of "https://github.com/gin-contrib/pprof/blob/master/pprof.go |
|
rpc-grpc/internal/serverinterceptors
auth check by jwt
|
auth check by jwt |
Click to show internal directories.
Click to hide internal directories.