Documentation ¶
Index ¶
- type Relation
- func (r *Relation) AccountBlocks(address types.Address, limit int, offset int) ([]types.Hash, error)
- func (r *Relation) AddBlock(block *types.StateBlock) error
- func (r *Relation) AddBlocks(txn *sqlx.Tx, blocks []*types.StateBlock) error
- func (r *Relation) BatchUpdate(fn func(txn *sqlx.Tx) error) error
- func (r *Relation) Blocks(limit int, offset int) ([]types.Hash, error)
- func (r *Relation) BlocksCount() (uint64, error)
- func (r *Relation) BlocksCountByType() (map[string]uint64, error)
- func (r *Relation) Close() error
- func (r *Relation) DeleteBlock(hash types.Hash) error
- func (r *Relation) EmptyStore() error
- func (r *Relation) MessageBlocks(hash types.Hash, limit int, offset int) ([]types.Hash, error)
- func (r *Relation) PhoneBlocks(phone []byte, sender bool, limit int, offset int) ([]types.Hash, error)
- func (r *Relation) SetEvent() error
- func (r *Relation) UnsubscribeEvent() error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relation ¶
type Relation struct {
// contains filtered or unexported fields
}
func (*Relation) AccountBlocks ¶
func (*Relation) BatchUpdate ¶ added in v1.2.0
func (*Relation) BlocksCount ¶
func (*Relation) BlocksCountByType ¶
func (*Relation) EmptyStore ¶ added in v1.2.0
func (*Relation) MessageBlocks ¶
func (*Relation) PhoneBlocks ¶
func (*Relation) UnsubscribeEvent ¶
type Store ¶
type Store interface { AccountBlocks(address types.Address, limit int, offset int) ([]types.Hash, error) BlocksCount() (uint64, error) BlocksCountByType() (map[string]uint64, error) Blocks(limit int, offset int) ([]types.Hash, error) PhoneBlocks(phone []byte, sender bool, limit int, offset int) ([]types.Hash, error) MessageBlocks(hash types.Hash, limit int, offset int) ([]types.Hash, error) AddBlock(block *types.StateBlock) error DeleteBlock(hash types.Hash) error Close() error }
Click to show internal directories.
Click to hide internal directories.