Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInternalError ¶
func IsUserError ¶
Types ¶
type InternalError ¶
type InternalError string
func (InternalError) Error ¶
func (e InternalError) Error() string
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func Put ¶
logic:
input: key, *struct a) Check if key has Id; yes/no no) INCR k:count set value as Id in struct b) Parse struct; returns [field, value, field, value, ...], [hashField, ...]. the hashField slice contains any optional properties which should be applied to before or after setting the struct in Redis (uniquity, index). c) Check unique fields and set unique fields d) Add the actual data from struct to a redis hash e) Add optional indexes f) if c, d, e did raise an error we need to cleanup the things we changed in the database.
Click to show internal directories.
Click to hide internal directories.