Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct {
Middlewares []gin.HandlerFunc
Resources []interface{}
// ShutdownTimeout is the timeout used for server shutdown. This specifies the timeout before server
// gracefully shutdown returns.
ShutdownTimeout time.Duration
// contains filtered or unexported fields
}
type GenericAPIServer gin.Engine.
func (*APIServer) InitAPIServer ¶
func (s *APIServer) InitAPIServer()
func (*APIServer) InstallMiddlewares ¶
func (s *APIServer) InstallMiddlewares()
InstallMiddlewares install generic middlewares.
func (*APIServer) InstallResources ¶
func (s *APIServer) InstallResources()
type BaseResource ¶
type BaseResource struct {
}
func (BaseResource) SetErrorResult ¶
func (r BaseResource) SetErrorResult(c *gin.Context, result interface{})
func (BaseResource) SetResult ¶
func (r BaseResource) SetResult(c *gin.Context, result interface{})
type DeleteResourceInterface ¶
type GetResourceInterface ¶
type ListResourceInterface ¶
type PathResourceInterface ¶
type PathResourceInterface interface {
Path() string
}
type PostResourceInterface ¶
type PutResourceInterface ¶
Click to show internal directories.
Click to hide internal directories.