controllers

package
v0.0.0-...-6375eca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProviders

func RegisterProviders(container *dig.Container) error

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)

func (*AuthController) SignOut

func (c *AuthController) SignOut(ctx *gin.Context) (interface{}, error)

func (*AuthController) SignUp

func (c *AuthController) SignUp(ctx *gin.Context) (interface{}, error)

type AuthControllerParams

type AuthControllerParams struct {
	dig.In
	Service auth.Service
}

type CalculationController

type CalculationController struct {
	// contains filtered or unexported fields
}

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 OperationControllerParams

type OperationControllerParams struct {
	dig.In
	Service operation.Service
}

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 RecordControllerParams struct {
	dig.In
	RecordService record.Service
}

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)

type UserControllerParams

type UserControllerParams struct {
	dig.In
	Service user.Service
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL