Documentation ¶
Index ¶
- type Config
- type ReOrm
- func (r *ReOrm) DeleteByID(req interface{}, ID interface{}) error
- func (r *ReOrm) Find(req interface{}) ([]interface{}, error)
- func (r *ReOrm) Get(resp, data interface{}) error
- func (r *ReOrm) GetByID(name string, ID, data interface{}) error
- func (r *ReOrm) GetValueByField(name, field string, req interface{}) (interface{}, error)
- func (r *ReOrm) Last(resp, data interface{}) error
- func (r *ReOrm) Save(data ...interface{}) error
- func (r *ReOrm) Update(id, req interface{}) error
- type SetType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string Password string Serializer serializer.Serializer // KeyPrefix returns prefix where data will be saved // for example "prefix_id" KeyPrefix string SetType SetType }
Config defines configuration for the project
type ReOrm ¶
type ReOrm struct {
// contains filtered or unexported fields
}
ReOrm provides implementation of the Redis ORM
func (*ReOrm) DeleteByID ¶
DeleteByID provides removing of the data by id
func (*ReOrm) Find ¶
Find provides finding of the data by non-default values at the req. For example: r.Find(&Car{Name: "BMW"}) And it should find by the field "Name"
func (*ReOrm) GetValueByField ¶
GetValueByField provides getting of the data by the field from the struct
Click to show internal directories.
Click to hide internal directories.