Documentation
¶
Index ¶
- Constants
- Variables
- type Broker
- type Cache
- type CacheWrapper
- func (wrapper *CacheWrapper) Bytes() []byte
- func (wrapper *CacheWrapper) CreateTime() time.Time
- func (wrapper *CacheWrapper) GetError() error
- func (wrapper *CacheWrapper) LastModified() string
- func (wrapper *CacheWrapper) MD5() string
- func (wrapper *CacheWrapper) Scan(v interface{}) error
- func (wrapper *CacheWrapper) String() string
- type EmptyBroker
- type GetterFunc
- type Key
- type Options
- type RequestKey
- type Service
- type Sink
- type UndefinedBroker
Constants ¶
View Source
const ( EvtKindTimeout = "TIMEOUT" EvtKindComplete = "COMPLETE" )
Variables ¶
View Source
var ( // ErrCacheBrokerTimeout ... ErrCacheBrokerTimeout = errors.New("cache broker timeout") // ErrCacheGetterTimeout ... ErrCacheGetterTimeout = errors.New("cache getter timeout") )
View Source
var ErrBrokerUndefined = errors.New("sorry! localcache's broker undefined")
View Source
var ErrGetterUndefined = errors.New("cache getter undefined")
ErrGetterUndefined ...
View Source
var ErrServiceClosed = errors.New("cache service closed")
ErrServiceClosed ...
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { CreateTime() time.Time Scan(v interface{}) error GetError() error String() string Bytes() []byte LastModified() string MD5() string }
Cache ...
type CacheWrapper ¶
type CacheWrapper struct {
// contains filtered or unexported fields
}
CacheWrapper ...
func (*CacheWrapper) CreateTime ¶
func (wrapper *CacheWrapper) CreateTime() time.Time
CreateTime ...
func (*CacheWrapper) LastModified ¶
func (wrapper *CacheWrapper) LastModified() string
LastModified ...
func (*CacheWrapper) String ¶
func (wrapper *CacheWrapper) String() string
type EmptyBroker ¶
type EmptyBroker struct{}
type RequestKey ¶
RequestKey ...
type UndefinedBroker ¶
type UndefinedBroker struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.