Documentation ¶
Index ¶
- type Application
- func (app *Application) BindRequest(c echo.Context, i request) error
- func (app *Application) DataTable(ctx context.Context, queryBuilder *gorm.DB, searchField []string, ...) (filterStatus bool)
- func (app *Application) DecryptSignature(cfg *configs.Config, encryptedData string) (*string, error)
- func (app *Application) NewCustomHTTPErrorHandler(err error, c echo.Context)
- func (app *Application) NewCustomJSON() *CustomJSON
- func (app *Application) NewCustomValidator() *CustomValidator
- func (app *Application) Start(cfg *configs.Config, e *echo.Echo) error
- func (app *Application) VerifySignature(cfg *configs.Config, payload string) (*string, error)
- type CustomHTTPErrorResponse
- type CustomJSON
- type CustomValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { TimeLocation *time.Location Database *gorm.DB Redis *redisPackage.Client Service *services.Service }
func (*Application) BindRequest ¶
func (app *Application) BindRequest(c echo.Context, i request) error
func (*Application) DecryptSignature ¶
func (app *Application) DecryptSignature(cfg *configs.Config, encryptedData string) (*string, error)
RSA Ciphers : RSA/NONE/OAEPWithSHA1AndMGF1Padding For Testing : https://8gwifi.org/RSAFunctionality?keysize=512
func (*Application) NewCustomHTTPErrorHandler ¶
func (app *Application) NewCustomHTTPErrorHandler(err error, c echo.Context)
func (*Application) NewCustomJSON ¶
func (app *Application) NewCustomJSON() *CustomJSON
func (*Application) NewCustomValidator ¶
func (app *Application) NewCustomValidator() *CustomValidator
func (*Application) VerifySignature ¶
type CustomHTTPErrorResponse ¶
type CustomJSON ¶
type CustomJSON struct{}
func (*CustomJSON) Deserialize ¶
func (cjson *CustomJSON) Deserialize(c echo.Context, i interface{}) error
func (*CustomJSON) Serialize ¶
func (cjson *CustomJSON) Serialize(c echo.Context, i interface{}, indent string) error
type CustomValidator ¶
type CustomValidator struct {
// contains filtered or unexported fields
}
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.