storage

package
v0.0.0-...-ab0fe71 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteByID

func DeleteByID(client *redis.Client, req, ID interface{}) error

DeleteByID provides deleting data by id

func Find

func Find(client *redis.Client, d interface{}) ([]interface{}, error)

Find provides finding of data by filling data on the fields

func Get

func Get(client *redis.Client, req, data interface{}) error

Get provides getting of the saved data by request

func GetByID

func GetByID(client *redis.Client, name string, ID interface{}, data interface{}) error

GetByID provides getting data by id

func GetValueByField

func GetValueByField(client *redis.Client, name, field string, req interface{}) (interface{}, error)

GetValueByField provides getting of the value from the field for example: &Car{ID: 1, Name: "BMW"} GetValue(client, "Car", "Name", &Car{ID: 1}) returns Car object

func Last

func Last(client *redis.Client, req, data interface{}) error

Last provides finding of the last element in the array

func Save

func Save(client *redis.Client, d interface{}) (string, error)

Save provides saving of the object

func Update

func Update(client *redis.Client, query, req interface{}) error

Update provides updating of the data

Types

This section is empty.

Jump to

Keyboard shortcuts

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