Documentation
¶
Index ¶
- Constants
- type LruCache
- func (lc *LruCache) AddBridgeRecords(key string, data *models.BridgeResponse)
- func (lc *LruCache) AddL1ToL2List(key string, data *models.DepositsResponse)
- func (lc *LruCache) AddL2ToL1List(key string, data *models.WithdrawsResponse)
- func (lc *LruCache) AddStakingRecords(key string, data *models.StakingResponse)
- func (lc *LruCache) GetBridgeRecords(key string) (*models.BridgeResponse, error)
- func (lc *LruCache) GetL1ToL2List(key string) (*models.DepositsResponse, error)
- func (lc *LruCache) GetL2ToL1List(key string) (*models.WithdrawsResponse, error)
- func (lc *LruCache) GetStakingRecords(key string) (*models.StakingResponse, error)
Constants ¶
View Source
const ListSize = 1200000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LruCache ¶
type LruCache struct {
// contains filtered or unexported fields
}
func NewLruCache ¶
func NewLruCache() *LruCache
func (*LruCache) AddBridgeRecords ¶
func (lc *LruCache) AddBridgeRecords(key string, data *models.BridgeResponse)
func (*LruCache) AddL1ToL2List ¶
func (lc *LruCache) AddL1ToL2List(key string, data *models.DepositsResponse)
func (*LruCache) AddL2ToL1List ¶
func (lc *LruCache) AddL2ToL1List(key string, data *models.WithdrawsResponse)
func (*LruCache) AddStakingRecords ¶
func (lc *LruCache) AddStakingRecords(key string, data *models.StakingResponse)
func (*LruCache) GetBridgeRecords ¶
func (lc *LruCache) GetBridgeRecords(key string) (*models.BridgeResponse, error)
func (*LruCache) GetL1ToL2List ¶
func (lc *LruCache) GetL1ToL2List(key string) (*models.DepositsResponse, error)
func (*LruCache) GetL2ToL1List ¶
func (lc *LruCache) GetL2ToL1List(key string) (*models.WithdrawsResponse, error)
func (*LruCache) GetStakingRecords ¶
func (lc *LruCache) GetStakingRecords(key string) (*models.StakingResponse, error)
Click to show internal directories.
Click to hide internal directories.