applications

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

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 New

func New(cfg *configs.Config) (*Application, error)

func (*Application) BindRequest

func (app *Application) BindRequest(c echo.Context, i request) error

func (*Application) DataTable

func (app *Application) DataTable(ctx context.Context, queryBuilder *gorm.DB, searchField []string, orderField string, sortField string, defaultOrder string, defaultSort string, page int, length *int, search string, filter bool) (filterStatus bool)

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) Start

func (app *Application) Start(cfg *configs.Config, e *echo.Echo) error

func (*Application) VerifySignature

func (app *Application) VerifySignature(cfg *configs.Config, payload string) (*string, error)

type CustomHTTPErrorResponse

type CustomHTTPErrorResponse struct {
	Code        string      `json:"code"`
	Description string      `json:"description"`
	Data        interface{} `json:"data"`
	Internal    error       `json:"-"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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