package
0.0.0-20240201022239-0ae679bc1fb1
Repository: https://github.com/peakchen/go-zero.git
Documentation: pkg.go.dev
# Functions
MustNewServer returns a server with given config of c and options defined in opts.
NewServer returns a server with given config of c and options defined in opts.
ToMiddleware converts the given handler to a Middleware.
WithChain returns a RunOption that uses the given chain to replace the default chain.
WithCors returns a func to enable CORS for given origin, or default to all origins (*).
WithCustomCors returns a func to enable CORS for given origin, or default to all origins (*), fn lets caller customizing the response.
WithJwt returns a func to enable jwt authentication in given route.
WithJwtTransition returns a func to enable jwt authentication as well as jwt secret transition.
WithMaxBytes returns a RouteOption to set maxBytes with the given value.
WithMiddleware adds given middleware to given route.
WithMiddlewares adds given middlewares to given routes.
WithNotAllowedHandler returns a RunOption with not allowed handler set to given handler.
WithNotFoundHandler returns a RunOption with not found handler set to given handler.
WithPrefix adds group as a prefix to the route paths.
WithPriority returns a RunOption with priority.
WithRouter returns a RunOption that make server run with given router.
WithSignature returns a RouteOption to enable signature verification.
WithTimeout returns a RouteOption to set timeout with given value.
WithTLSConfig returns a RunOption that with given tls config.
WithUnauthorizedCallback returns a RunOption that with given unauthorized callback set.
WithUnsignedCallback returns a RunOption that with given unsigned callback set.
# Variables
ErrSignatureConfig is an error that indicates bad config for signature.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author