package
0.0.21
Repository: https://github.com/zahir-core/grest-cli.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Cache returns a pointer to the cacheUtil instance (cache).
Config initializes the configuration (config) if it is not already initialized.
Crypto returns a pointer to the cryptoUtil instance (crpto).
DB returns a pointer to the dbUtil instance (db).
Error returns a pointer to the errorUtil instance (eu).
FS returns the instance of fsUtil (filesystem utility).
HttpClient creates and returns a new instance of httpClientUtil.
Logger returns a pointer to the loggerUtil instance (logger).
add your mock service here, for example : // original func (add IS_USE_MOCK_SERVICE_ABC and IS_USE_MOCK_SUCCESS to config) func (*UseCaseHandler) CallServiceABC(ctx *Ctx, param RequestServiceABC) (ResponseServiceABC, error) { if IS_USE_MOCK_SERVICE_ABC { return Mock().CallServiceABC(ctx, param) } var err error res := ResponseServiceABC{} // do something here return res, err } // mock func func (*mockHandler) CallServiceABC(ctx *Ctx, param RequestServiceABC) (ResponseServiceABC, error) { if IS_USE_MOCK_SUCCESS { // return success dummy } return ResponseServiceABC{}, NewError(http.StatusInternalServerError, "Something wrong") }.
NewCrypto creates a new cryptoUtil instance with custom keys.
NewNullBool return NullBool.
NewNullDate return NullDate.
NewNullDateTime return NullDateTime.
NewNullFloat64 return NullFloat64.
NewNullInt64 return NullInt64.
NewNullString return NullString.
NewNullText return NullText.
NewNullTime return NullTime.
NewNullUnixTime return NullUnixTime.
NewNullUUID return NullUUID.
No description provided by the author
No description provided by the author
Query returns a pointer to the queryUtil instance (qu).
No description provided by the author
telegram returns a pointer to the telegramUtil instance (telegram).
No description provided by the author
Translator returns a pointer to the translatorUtil instance (translator).
Validator returns a pointer to the validatorUtil instance (validator).

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
on .env = "1h".
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
for testing.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
set to true to run migration, seed and task scheduling.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
print log to the terminal.
log console excluded keys.
log console time format.
log console with json format.
log to a file.
log file filename.
days.
files.
MB.
if false log rotation filename will be use UTC time.
log file with json format.
debug, info, warning, error.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.
These variables represent various configuration settings used by the application.

# Structs

No description provided by the author
No description provided by the author
FileDeleteOption represents the options for file deletion.
FileUploadOption represents the information related to a file upload.
This type represents the options for file upload.
No description provided by the author
No description provided by the author
NullBool is nullable Bool, it embeds a grest.NullBool, so you can add your own method or override grest.NullBool method.
NullDate is nullable Date, it embeds a grest.NullDate, so you can add your own method or override grest.NullDate method.
NullDateTime is nullable DateTime, it embeds a grest.NullDateTime, so you can add your own method or override grest.NullDateTime method.
NullFloat64 is nullable Float64, it embeds a grest.NullFloat64, so you can add your own method or override grest.NullFloat64 method.
NullInt64 is nullable Int64, it embeds a grest.NullInt64, so you can add your own method or override grest.NullInt64 method.
NullJSON is nullable JSON, it embeds a grest.NullJSON, so you can add your own method or override grest.NullJSON method.
NullString is nullable String, it embeds a grest.NullString, so you can add your own method or override grest.NullString method.
NullText is nullable Text, it embeds a grest.NullText, so you can add your own method or override grest.NullText method.
NullTime is nullable Time, it embeds a grest.NullTime, so you can add your own method or override grest.NullTime method.
NullUnixTime is nullable Unix DateTime, it embeds a grest.NullUnixTime, so you can add your own method or override grest.NullUnixTime method.
NullUUID is nullable UUID, it embeds a grest.NullUUID, so you can add your own method or override grest.NullUUID method.
No description provided by the author
RegisteredJWTClaim represents registered claim names in the IANA "JSON Web Token Claims" registry.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author