Versions in this module Expand all Collapse all v1 v1.0.1 Sep 13, 2020 v1.0.0 Sep 13, 2020 Changes in this version + const BIGCACHE + const CACHING + const CUSTOM + const MONGODB + const NOSQL + const REDIS + const SQL + const SQLLike + func New(databaseType int) func(databaseCompany int, config *Config) interface + func NewCaching(databaseCompany int, config *Config) interface + func NewNoSQL(databaseCompany int, config *Config) interface + func NewSQL(databaseCompany int, config *Config) interface + type BigCacheClient struct + Client *bigcache.BigCache + func (bc *BigCacheClient) Append(key string, value interface{}) error + func (bc *BigCacheClient) Close() error + func (bc *BigCacheClient) Delete(key string) error + func (bc *BigCacheClient) Get(key string) (interface{}, error) + func (bc *BigCacheClient) GetCapacity() (interface{}, error) + func (bc *BigCacheClient) GetNumberOfRecords() int + func (bc *BigCacheClient) Middleware(hash hash.IHash) echo.MiddlewareFunc + func (bc *BigCacheClient) Set(key string, value interface{}, expire time.Duration) error + func (bc *BigCacheClient) Update(key string, value interface{}, expire time.Duration) error + type ComparisonOperators string + const Equal + const EqualAny + const GreaterThan + const GreaterThanOrEqualTo + const LessThan + const LessThanOrEqualTo + const NotEqual + const NotEqualAnyLL + type Config struct + BigCache bigcache.Config + CustomCache CustomCache + LIKE LIKE + MongoDB MongoDB + Redis Redis + type CustomCache struct + CacheSize int64 + CleaningEnable bool + CleaningInterval time.Duration + type CustomClient struct + func (cl *CustomClient) Close() error + func (cl *CustomClient) Delete(key string) error + func (cl *CustomClient) Get(key string) (interface{}, error) + func (cl *CustomClient) GetCapacity() (interface{}, error) + func (cl *CustomClient) GetMany(keys []string) (map[string]interface{}, []string, error) + func (cl *CustomClient) GetNumberOfRecords() int + func (cl *CustomClient) Middleware(hash hash.IHash) echo.MiddlewareFunc + func (cl *CustomClient) Range(f func(key, value interface{}) bool) + func (cl *CustomClient) Set(key string, value interface{}, expire time.Duration) error + func (cl *CustomClient) Update(key string, value interface{}, expire time.Duration) error + type ICaching interface + Close func() error + Delete func(key string) error + Get func(key string) (interface{}, error) + GetCapacity func() (interface{}, error) + GetNumberOfRecords func() int + Middleware func(hash hash.IHash) echo.MiddlewareFunc + Set func(key string, value interface{}, expire time.Duration) error + Update func(key string, value interface{}, expire time.Duration) error + func NewBigCache(config *Config) ICaching + func NewCustom(config *Config) ICaching + func NewRedis(config *Config) ICaching + type INoSQL interface + Create func(databaseName, collectionName string, dataModel interface{}) (result interface{}, err error) + Delete func(databaseName, collectionName, ID string) (result interface{}, err error) + GetALL func(databaseName, collectionName, lastID, pageSize string, dataModel reflect.Type) (results interface{}, err error) + GetByField func(databaseName, collectionName, field, value string, dataModel reflect.Type) (interface{}, error) + MatchAndLookup func(databaseName, collectionName string, model MatchLookup, dataModel reflect.Type) (results interface{}, err error) + Update func(databaseName, collectionName, ID string, dataModel interface{}) (result interface{}, err error) + func NewMongoDB(config *MongoDB) INoSQL + type ISQL interface + Execute func(query string, dataModel interface{}) (interface{}, error) + type LIKE struct + DataSourceName string + DriverName string + MaxConnectionIdle int + MaxConnectionLifetime time.Duration + MaxConnectionOpen int + type Lookup struct + As string + ForeignField string + From string + LocalField string + type Match struct + Field string + Operator ComparisonOperators + Value string + type MatchLookup struct + Lookup []Lookup + Match []Match + type MongoClient struct + Client *mongo.Client + Config *MongoDB + func (m *MongoClient) Create(databaseName, collectionName string, dataModel interface{}) (result interface{}, err error) + func (m *MongoClient) Delete(databaseName, collectionName, ID string) (result interface{}, err error) + func (m *MongoClient) GetALL(databaseName, collectionName, lastID, pageSize string, dataModel reflect.Type) (results interface{}, err error) + func (m *MongoClient) GetByField(databaseName, collectionName, field, value string, dataModel reflect.Type) (result interface{}, err error) + func (m *MongoClient) MatchAndLookup(databaseName, collectionName string, model MatchLookup, dataModel reflect.Type) (results interface{}, err error) + func (m *MongoClient) Update(databaseName, collectionName, ID string, dataModel interface{}) (result interface{}, err error) + type MongoDB struct + DB string + Hosts []string + Options []string + Password string + User string + type Redis struct + DB int + Host string + MaxRetries int + Password string + type RedisClient struct + Client *redis.Client + func (r *RedisClient) Append(key string, value interface{}) error + func (r *RedisClient) Close() error + func (r *RedisClient) Delete(key string) error + func (r *RedisClient) Get(key string) (interface{}, error) + func (r *RedisClient) GetCapacity() (interface{}, error) + func (r *RedisClient) GetNumberOfRecords() int + func (r *RedisClient) Middleware(hash hash.IHash) echo.MiddlewareFunc + func (r *RedisClient) Set(key string, value interface{}, expire time.Duration) error + func (r *RedisClient) Update(key string, value interface{}, expire time.Duration) error + type SQLLikeClient struct + Client *sql.DB + Config *LIKE + func NewSQLLike(config *LIKE) *SQLLikeClient + func (c *SQLLikeClient) Execute(query string, dataModel interface{}) (interface{}, error) + type Set struct + Data interface{} + Operator UpdateOperators + type UpdateOperators string + const Replaces