Documentation ¶
Index ¶
- func CallBSC(context *fiber.Ctx) (string, error)
- func GeneratePasswordRecoveryToken(recoveryType string, id uint) (string, error)
- func GenerateRandomNumber(rnd *rand.Rand, min, max int) int
- func GenerateUserToken(address string, userID uint) (string, error)
- func GetEnvVariable(key string) string
- func GetNodeName(context *fiber.Ctx, index uint) string
- func NewSHA256(data []byte) []byte
- func ParseAndValidateRequestBody(context *fiber.Ctx, object interface{}) error
- func ReturnErrorResponse(status int, err error, context *fiber.Ctx) error
- func ReturnSuccessResponse(context *fiber.Ctx) error
- type UserTokenClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvVariable ¶
func GetNodeName ¶
func ParseAndValidateRequestBody ¶
func ParseAndValidateRequestBody(context *fiber.Ctx, object interface{}) error
func ReturnErrorResponse ¶
func ReturnSuccessResponse ¶
func ReturnSuccessResponse(context *fiber.Ctx) error
Types ¶
type UserTokenClaims ¶
func GetUserTokenClaims ¶
func GetUserTokenClaims(context *fiber.Ctx) (*UserTokenClaims, error)
Click to show internal directories.
Click to hide internal directories.