Documentation ¶
Index ¶
- func RegisterProviders(container *dig.Container) error
- type AuthController
- type AuthControllerParams
- type CalculationController
- type CalculationControllerParams
- type OperationController
- type OperationControllerParams
- type RecordController
- type RecordControllerParams
- type SignOutHeader
- type UserController
- type UserControllerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProviders ¶
Types ¶
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
func NewAuthController ¶
func NewAuthController(options AuthControllerParams) *AuthController
func (*AuthController) RegisterRoutes ¶
func (c *AuthController) RegisterRoutes(group *gin.RouterGroup)
func (*AuthController) SignIn ¶
func (c *AuthController) SignIn(ctx *gin.Context) (interface{}, error)
type CalculationController ¶
type CalculationController struct {
// contains filtered or unexported fields
}
func NewCalculationController ¶
func NewCalculationController(params CalculationControllerParams) *CalculationController
func (*CalculationController) Calculate ¶
func (c *CalculationController) Calculate(ctx *gin.Context) (interface{}, error)
func (*CalculationController) RegisterRoutes ¶
func (c *CalculationController) RegisterRoutes(router *gin.RouterGroup)
type CalculationControllerParams ¶
type CalculationControllerParams struct { dig.In CalculationService calculation.Service }
type OperationController ¶
type OperationController struct {
// contains filtered or unexported fields
}
func NewOperationController ¶
func NewOperationController(params OperationControllerParams) *OperationController
func (*OperationController) Get ¶
func (c *OperationController) Get(ctx *gin.Context) (interface{}, error)
func (*OperationController) List ¶
func (c *OperationController) List(ctx *gin.Context) (interface{}, error)
func (*OperationController) RegisterRoutes ¶
func (c *OperationController) RegisterRoutes(group *gin.RouterGroup)
type RecordController ¶
type RecordController struct {
// contains filtered or unexported fields
}
func NewRecordController ¶
func NewRecordController(params RecordControllerParams) *RecordController
func (*RecordController) Delete ¶
func (c *RecordController) Delete(ctx *gin.Context) (interface{}, error)
func (*RecordController) List ¶
func (c *RecordController) List(ctx *gin.Context) (interface{}, error)
func (*RecordController) RegisterRoutes ¶
func (c *RecordController) RegisterRoutes(router *gin.RouterGroup)
type RecordControllerParams ¶
type SignOutHeader ¶
type SignOutHeader = auth.SignOutRequest
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func NewUserController ¶
func NewUserController(options UserControllerParams) *UserController
func (*UserController) DeleteMe ¶
func (c *UserController) DeleteMe(ctx *gin.Context) (interface{}, error)
func (*UserController) FindMe ¶
func (c *UserController) FindMe(ctx *gin.Context) (interface{}, error)
func (*UserController) GetMyBalance ¶
func (c *UserController) GetMyBalance(ctx *gin.Context) (interface{}, error)
func (*UserController) RegisterRoutes ¶
func (c *UserController) RegisterRoutes(router *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.