Documentation ¶
Index ¶
- type ABICacheItem
- type ABISyncer
- type Backuper
- type Cache
- type Decoder
- func (d *Decoder) DecodeAction(ctx context.Context, req *pbabicodec.DecodeActionRequest) (*pbabicodec.Response, error)
- func (d *Decoder) DecodeTable(cxt context.Context, req *pbabicodec.DecodeTableRequest) (*pbabicodec.Response, error)
- func (d *Decoder) GetAbi(ctx context.Context, req *pbabicodec.GetAbiRequest) (*pbabicodec.Response, error)
- type DefaultCache
- func (c *DefaultCache) ABIAtBlockNum(account string, blockNum uint32) *ABICacheItem
- func (c *DefaultCache) Export(baseURL, filename string) error
- func (c *DefaultCache) GetCursor() string
- func (c *DefaultCache) Load(workerID string) (string, error)
- func (c *DefaultCache) RemoveABIAtBlockNum(account string, blockNum uint32)
- func (c *DefaultCache) Save(cursor string, workerID string) error
- func (c *DefaultCache) SaveState() error
- func (c *DefaultCache) SetABIAtBlockNum(account string, blockNum uint32, abi *zsw.ABI)
- func (c *DefaultCache) SetCursor(cursor string)
- type IsLive
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABICacheItem ¶
type ABICacheItem struct { ABI *zsw.ABI BlockNum uint32 }
type Cache ¶
type Cache interface { ABIAtBlockNum(account string, blockNum uint32) *ABICacheItem SetABIAtBlockNum(account string, blockNum uint32, abi *zsw.ABI) RemoveABIAtBlockNum(account string, blockNum uint32) SaveState() error SetCursor(cursor string) GetCursor() string Export(baseURL string, filename string) error }
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) DecodeAction ¶
func (d *Decoder) DecodeAction(ctx context.Context, req *pbabicodec.DecodeActionRequest) (*pbabicodec.Response, error)
func (*Decoder) DecodeTable ¶
func (d *Decoder) DecodeTable(cxt context.Context, req *pbabicodec.DecodeTableRequest) (*pbabicodec.Response, error)
func (*Decoder) GetAbi ¶
func (d *Decoder) GetAbi(ctx context.Context, req *pbabicodec.GetAbiRequest) (*pbabicodec.Response, error)
type DefaultCache ¶
type DefaultCache struct { Abis map[string][]*ABICacheItem // from account to the ABIs in range Cursor string `json:"cursor"` // contains filtered or unexported fields }
func NewABICache ¶
func NewABICache(store dstore.Store, cacheName string) (*DefaultCache, error)
func (*DefaultCache) ABIAtBlockNum ¶
func (c *DefaultCache) ABIAtBlockNum(account string, blockNum uint32) *ABICacheItem
func (*DefaultCache) Export ¶
func (c *DefaultCache) Export(baseURL, filename string) error
func (*DefaultCache) GetCursor ¶
func (c *DefaultCache) GetCursor() string
func (*DefaultCache) RemoveABIAtBlockNum ¶
func (c *DefaultCache) RemoveABIAtBlockNum(account string, blockNum uint32)
func (*DefaultCache) SaveState ¶
func (c *DefaultCache) SaveState() error
func (*DefaultCache) SetABIAtBlockNum ¶
func (c *DefaultCache) SetABIAtBlockNum(account string, blockNum uint32, abi *zsw.ABI)
func (*DefaultCache) SetCursor ¶
func (c *DefaultCache) SetCursor(cursor string)
Click to show internal directories.
Click to hide internal directories.