Documentation ¶
Overview ¶
Package internal Save some status during system initialization only for handler paclage use.
Index ¶
- func Metrics(ctx context.Context, c *app.RequestContext)
- func Ping(ctx context.Context, c *app.RequestContext)
- type BaseMsg
- type Controller
- func (ctrl *Controller) AccessLog(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) CreateAction(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) DeleteAction(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) DeleteActions(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) FindAction(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) ListActions(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) Porxy(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) RetaLimit(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) SetLogID(ctx context.Context, c *app.RequestContext)
- func (ctrl *Controller) UpdateAction(ctx context.Context, c *app.RequestContext)
- type CreateActionRequest
- type CreateActionResponse
- type DeleteActionResponse
- type DeleteActionsRequest
- type DeleteActionsResponse
- type Error
- type GetActionResponse
- type ListActionsRequest
- type ListActionsResponse
- type ResponseMetadata
- type UpdateActionRequest
- type UpdateActionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller app global variable controller. Dependency injection instead of global variables
func NewController ¶
func NewController() (*Controller, error)
func (*Controller) AccessLog ¶
func (ctrl *Controller) AccessLog(ctx context.Context, c *app.RequestContext)
func (*Controller) CreateAction ¶
func (ctrl *Controller) CreateAction(ctx context.Context, c *app.RequestContext)
CreateAction create new action request.
func (*Controller) DeleteAction ¶
func (ctrl *Controller) DeleteAction(ctx context.Context, c *app.RequestContext)
DeleteAction
func (*Controller) DeleteActions ¶
func (ctrl *Controller) DeleteActions(ctx context.Context, c *app.RequestContext)
DeleteActions
func (*Controller) FindAction ¶
func (ctrl *Controller) FindAction(ctx context.Context, c *app.RequestContext)
GetAction
func (*Controller) ListActions ¶
func (ctrl *Controller) ListActions(ctx context.Context, c *app.RequestContext)
ListActions list some actions.
func (*Controller) Porxy ¶
func (ctrl *Controller) Porxy(ctx context.Context, c *app.RequestContext)
func (*Controller) RetaLimit ¶
func (ctrl *Controller) RetaLimit(ctx context.Context, c *app.RequestContext)
RetaLimit 全局速率中间件.
func (*Controller) SetLogID ¶
func (ctrl *Controller) SetLogID(ctx context.Context, c *app.RequestContext)
func (*Controller) UpdateAction ¶
func (ctrl *Controller) UpdateAction(ctx context.Context, c *app.RequestContext)
UpdateAction
type CreateActionRequest ¶
type CreateActionResponse ¶
type CreateActionResponse struct {
BaseMsg
}
type DeleteActionResponse ¶
type DeleteActionResponse struct {
BaseMsg
}
type DeleteActionsRequest ¶
type DeleteActionsResponse ¶
type DeleteActionsResponse struct {
BaseMsg
}
type GetActionResponse ¶
type ListActionsRequest ¶
type ListActionsResponse ¶
type ResponseMetadata ¶
type UpdateActionRequest ¶
type UpdateActionResponse ¶
type UpdateActionResponse struct {
BaseMsg
}
Click to show internal directories.
Click to hide internal directories.