driver

package
v1.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheImpl

type CacheImpl struct {
	Driver Containerer
}

Cache based on memory implementation

func (*CacheImpl) Del

func (self *CacheImpl) Del(k string)

erase

func (*CacheImpl) Exist

func (self *CacheImpl) Exist(k interface{}) bool

func (*CacheImpl) Get

func (self *CacheImpl) Get(k string) (interface{}, bool)

get

func (*CacheImpl) GetStorage

func (self *CacheImpl) GetStorage() Containerer

func (*CacheImpl) Has

func (self *CacheImpl) Has(k string) bool

has

func (*CacheImpl) Set

func (self *CacheImpl) Set(k string, v interface{})

set

type Containerer

type Containerer interface {
	PushKVPair(k, v interface{}) Containerer
	EraseKVPair(k interface{}) Containerer
	PushKVMaps(maps ...map[string]interface{}) Containerer
	ResetKVPair(k string, v interface{}) Containerer
	ResetOrAddKVPair(k string, v interface{}) Containerer
	ResetKVPairs(kvMaps map[string]interface{}) Containerer
	ResetOrAddKVPairs(kvMaps map[string]interface{}) Containerer
	Exist(k interface{}) bool
	GetData() *map[string]interface{}
}

Container interface define

type FileContainer

type FileContainer struct {
}

func NewFileContainer

func NewFileContainer() *FileContainer

func (*FileContainer) EraseKVPair

func (this *FileContainer) EraseKVPair(k interface{}) Containerer

func (*FileContainer) Exist

func (this *FileContainer) Exist(k interface{}) bool

func (*FileContainer) GetData

func (this *FileContainer) GetData() *map[string]interface{}

func (*FileContainer) PushKVMaps

func (this *FileContainer) PushKVMaps(maps ...map[string]interface{}) Containerer

func (*FileContainer) PushKVPair

func (this *FileContainer) PushKVPair(k, v interface{}) Containerer

func (*FileContainer) ResetKVPair

func (this *FileContainer) ResetKVPair(k string, v interface{}) Containerer

func (*FileContainer) ResetKVPairs

func (this *FileContainer) ResetKVPairs(kvMaps map[string]interface{}) Containerer

func (*FileContainer) ResetOrAddKVPair

func (this *FileContainer) ResetOrAddKVPair(k string, v interface{}) Containerer

func (*FileContainer) ResetOrAddKVPairs

func (this *FileContainer) ResetOrAddKVPairs(kvMaps map[string]interface{}) Containerer

type MapContainer

type MapContainer struct {
	// contains filtered or unexported fields
}

Memory Driven Based on Map Type

func NewMapContainer

func NewMapContainer() *MapContainer

create new map container

func (*MapContainer) EraseKVPair

func (this *MapContainer) EraseKVPair(k interface{}) Containerer

func (*MapContainer) Exist

func (this *MapContainer) Exist(k interface{}) bool

func (*MapContainer) GetData

func (this *MapContainer) GetData() *map[string]interface{}

func (*MapContainer) PushKVMaps

func (this *MapContainer) PushKVMaps(maps ...map[string]interface{}) Containerer

func (*MapContainer) PushKVPair

func (this *MapContainer) PushKVPair(k, v interface{}) Containerer

func (*MapContainer) ResetKVPair

func (this *MapContainer) ResetKVPair(k string, v interface{}) Containerer

func (*MapContainer) ResetKVPairs

func (this *MapContainer) ResetKVPairs(kvMaps map[string]interface{}) Containerer

func (*MapContainer) ResetOrAddKVPair

func (this *MapContainer) ResetOrAddKVPair(k string, v interface{}) Containerer

func (*MapContainer) ResetOrAddKVPairs

func (this *MapContainer) ResetOrAddKVPairs(kvMaps map[string]interface{}) Containerer

type MongoContainer

type MongoContainer struct {
}

func NewMongoContainer

func NewMongoContainer() *MongoContainer

func (*MongoContainer) EraseKVPair

func (this *MongoContainer) EraseKVPair(k interface{}) Containerer

func (*MongoContainer) Exist

func (this *MongoContainer) Exist(k interface{}) bool

func (*MongoContainer) GetData

func (this *MongoContainer) GetData() *map[string]interface{}

func (*MongoContainer) PushKVMaps

func (this *MongoContainer) PushKVMaps(maps ...map[string]interface{}) Containerer

func (*MongoContainer) PushKVPair

func (this *MongoContainer) PushKVPair(k, v interface{}) Containerer

func (*MongoContainer) ResetKVPair

func (this *MongoContainer) ResetKVPair(k string, v interface{}) Containerer

func (*MongoContainer) ResetKVPairs

func (this *MongoContainer) ResetKVPairs(kvMaps map[string]interface{}) Containerer

func (*MongoContainer) ResetOrAddKVPair

func (this *MongoContainer) ResetOrAddKVPair(k string, v interface{}) Containerer

func (*MongoContainer) ResetOrAddKVPairs

func (this *MongoContainer) ResetOrAddKVPairs(kvMaps map[string]interface{}) Containerer

type MysqlContainer

type MysqlContainer struct {
}

func NewMysqlContainer

func NewMysqlContainer() *MysqlContainer

func (*MysqlContainer) EraseKVPair

func (this *MysqlContainer) EraseKVPair(k interface{}) Containerer

func (*MysqlContainer) Exist

func (this *MysqlContainer) Exist(k interface{}) bool

func (*MysqlContainer) GetData

func (this *MysqlContainer) GetData() *map[string]interface{}

func (*MysqlContainer) PushKVMaps

func (this *MysqlContainer) PushKVMaps(maps ...map[string]interface{}) Containerer

func (*MysqlContainer) PushKVPair

func (this *MysqlContainer) PushKVPair(k, v interface{}) Containerer

func (*MysqlContainer) ResetKVPair

func (this *MysqlContainer) ResetKVPair(k string, v interface{}) Containerer

func (*MysqlContainer) ResetKVPairs

func (this *MysqlContainer) ResetKVPairs(kvMaps map[string]interface{}) Containerer

func (*MysqlContainer) ResetOrAddKVPair

func (this *MysqlContainer) ResetOrAddKVPair(k string, v interface{}) Containerer

func (*MysqlContainer) ResetOrAddKVPairs

func (this *MysqlContainer) ResetOrAddKVPairs(kvMaps map[string]interface{}) Containerer

type RedisContainer

type RedisContainer struct {
}

func NewRedisContainer

func NewRedisContainer() *RedisContainer

func (*RedisContainer) EraseKVPair

func (this *RedisContainer) EraseKVPair(k interface{}) Containerer

func (*RedisContainer) Exist

func (this *RedisContainer) Exist(k interface{}) bool

func (*RedisContainer) GetData

func (this *RedisContainer) GetData() *map[string]interface{}

func (*RedisContainer) PushKVMaps

func (this *RedisContainer) PushKVMaps(maps ...map[string]interface{}) Containerer

func (*RedisContainer) PushKVPair

func (this *RedisContainer) PushKVPair(k, v interface{}) Containerer

func (*RedisContainer) ResetKVPair

func (this *RedisContainer) ResetKVPair(k string, v interface{}) Containerer

func (*RedisContainer) ResetKVPairs

func (this *RedisContainer) ResetKVPairs(kvMaps map[string]interface{}) Containerer

func (*RedisContainer) ResetOrAddKVPair

func (this *RedisContainer) ResetOrAddKVPair(k string, v interface{}) Containerer

func (*RedisContainer) ResetOrAddKVPairs

func (this *RedisContainer) ResetOrAddKVPairs(kvMaps map[string]interface{}) Containerer

Jump to

Keyboard shortcuts

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