Documentation ¶
Index ¶
- func ReflectTypeName(i interface{}) string
- func ReflectValue(i interface{}) reflect.Value
- func ValidateAndBind(c echo.Context, value interface{}) error
- type Controller
- type DTOValidator
- type IController
- type IInjectable
- type IModule
- type IService
- type Injectable
- type Module
- type Service
- type Worker
- type WorkerMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReflectTypeName ¶
func ReflectTypeName(i interface{}) string
func ReflectValue ¶
func ValidateAndBind ¶
func ValidateAndBind(c echo.Context, value interface{}) error
Types ¶
type Controller ¶
type Controller struct {
Injectable
}
func (Controller) Init ¶
func (c Controller) Init(self IInjectable) error
func (Controller) ShouldLogInjection ¶
func (c Controller) ShouldLogInjection(self IInjectable) bool
type DTOValidator ¶
type DTOValidator struct {
// contains filtered or unexported fields
}
func NewDTOValidator ¶
func NewDTOValidator() *DTOValidator
func (*DTOValidator) Validate ¶
func (cv *DTOValidator) Validate(i interface{}) error
type IController ¶
type IController interface { IInjectable InitRoutes(e *echo.Echo) }
type IInjectable ¶
type IInjectable interface { Init(self IInjectable) error ShouldLogInjection(self IInjectable) bool IsInitialized() bool }
type IModule ¶
type IModule interface { IInjectable InitControllersRoutes(self IInjectable, e *echo.Echo) error }
type IService ¶
type IService interface { IInjectable }
type Injectable ¶
type Injectable struct {
// contains filtered or unexported fields
}
func (*Injectable) Init ¶
func (i *Injectable) Init(self IInjectable) error
func (*Injectable) IsInitialized ¶
func (i *Injectable) IsInitialized() bool
func (*Injectable) ShouldLogInjection ¶
func (i *Injectable) ShouldLogInjection(self IInjectable) bool
type Module ¶
type Module struct {
Injectable
}
func (Module) Init ¶
func (m Module) Init(self IInjectable) error
func (Module) InitControllersRoutes ¶
func (m Module) InitControllersRoutes(self IInjectable, e *echo.Echo) error
func (Module) ShouldLogInjection ¶
func (m Module) ShouldLogInjection(self IInjectable) bool
type Service ¶
type Service struct {
Injectable
}
func (Service) Init ¶
func (s Service) Init(self IInjectable) error
func (Service) ShouldLogInjection ¶
func (s Service) ShouldLogInjection(self IInjectable) bool
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) Inject ¶
func (w *Worker) Inject(injectable IInjectable) error
type WorkerMock ¶
type WorkerMock struct {
*Worker
}
func NewWorkerMock ¶
func NewWorkerMock(mainModule IModule) (*WorkerMock, error)
func (*WorkerMock) NewContext ¶
func (w *WorkerMock) NewContext(req *http.Request, res http.ResponseWriter) echo.Context
Source Files ¶
Click to show internal directories.
Click to hide internal directories.