package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Dec 31, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Create(db *gorm.DB, ctx *fiber.Ctx) (string, error)
-
func Delete(id string, db *gorm.DB, ctx *fiber.Ctx) error
-
func GetValue(id string, db *gorm.DB, ctx *fiber.Ctx) (string, error)
-
func Update(id string, db *gorm.DB, ctx *fiber.Ctx) (string, error)
-
type CacheReq
-
type ErrorResponse
Create is a function that creates the cache in the database.
Delete is a function that deletes the cache from the database.
GetValue is a function that gets the cache from the database.
Update is a function that updates the cache in the database.
type CacheReq struct {
Value string `json:"value" xml:"value" form:"value" validate:"required,min=1"`
}
Cache is a struct that represents the request body.
ErrorResponse is a struct that represents the error response.
Validator is a function that validates the request body.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.