Documentation
¶
Index ¶
- func GetPrivateKey(priKeyPath string) (*rsa.PrivateKey, error)
- func GetPublicKey(publicKeyPath string) (publicKey *rsa.PublicKey, err error)
- func Json(obj interface{}) []byte
- func NewCacheElimination(mode uint8) cacheMode.CacheElimination
- func NewRoundQueue(cap uint64) *roundQueue
- type ApiResponse
- type CacheManager
- type Client
- type Manager
- type RoundQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrivateKey ¶
func GetPrivateKey(priKeyPath string) (*rsa.PrivateKey, error)
func NewCacheElimination ¶
func NewCacheElimination(mode uint8) cacheMode.CacheElimination
func NewRoundQueue ¶
func NewRoundQueue(cap uint64) *roundQueue
Types ¶
type ApiResponse ¶
type CacheManager ¶
type CacheManager interface { MapPut(key, value string, expiryPolicy int64) error // set key value MapLoad(key string) (string, bool) // get value MapRemove(key string) // remove Clear() Close() }
func NewManager ¶
func NewManager(MaxMemCap uint64, shardSize uintptr, mode uint8) CacheManager
type Client ¶
type Manager ¶
type Manager struct { Push chan<- *cacheMode.Entry Pop <-chan *cacheMode.Entry // contains filtered or unexported fields }
func (*Manager) WatchPopChan ¶
func (m *Manager) WatchPopChan()
type RoundQueue ¶
Click to show internal directories.
Click to hide internal directories.