Documentation ¶
Overview ¶
Package rest provides a server and handlers for RESTful HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides HTTP routing and handler dependencies.
func (*Server) GracefulShutdown ¶
GracefulShutdown closes the Server with the grace period specified in its config.
type ServerMiddleware ¶
type ServerMiddleware []gin.HandlerFunc
ServerMiddleware represents a chain of middleware in the order in which they'll be applied to a *gin.Engine. I.e. the first middleware in the stack represents the outermost layer in the HTTP call chain.
func GlobalServerMiddleware ¶
func GlobalServerMiddleware(logger *otelzap.Logger) ServerMiddleware
GlobalServerMiddleware returns the middleware stack used for all routes when running in development.
Directories ¶
Path | Synopsis |
---|---|
admin
|
|
profile/adminsettinghandler
Package adminsettinghandler provide a server and handlers for RESTful HTTP requests.
|
Package adminsettinghandler provide a server and handlers for RESTful HTTP requests. |
authentication
|
|
authenticationhandler
Package authenticationhandler provide a server and handlers for RESTful HTTP requests.
|
Package authenticationhandler provide a server and handlers for RESTful HTTP requests. |
Package gincontext provides funtcion to get ent entity from gin context
|
Package gincontext provides funtcion to get ent entity from gin context |
Package middlewares provide a middleware used in handlers for RESTful HTTP requests.
|
Package middlewares provide a middleware used in handlers for RESTful HTTP requests. |
Click to show internal directories.
Click to hide internal directories.