store

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrackingAddrKey       = "tracking_addrs"
	TrackingAddrUpdateKey = "tracking_addrs_update"
	LastHeightKey         = "last_height"
)

Variables

This section is empty.

Functions

func AddrFeedKey

func AddrFeedKey(addr address.Address) string

Types

type ActorTracker

type ActorTracker struct {
	// contains filtered or unexported fields
}

func New

func New(rdb *redis.Client) *ActorTracker

func (*ActorTracker) Clear

func (at *ActorTracker) Clear()

func (*ActorTracker) Flush

func (at *ActorTracker) Flush(ctx context.Context) error

func (*ActorTracker) Len

func (at *ActorTracker) Len() int

func (*ActorTracker) Load

func (at *ActorTracker) Load(ctx context.Context) (int, error)

func (*ActorTracker) RecordMessage

func (at *ActorTracker) RecordMessage(msg MessageRecord) bool

type MessageRecord added in v0.0.2

type MessageRecord struct {
	Message    *types.Message
	MessageCid cid.Cid
	Block      *types.BlockHeader
	TipSetKey  types.TipSetKey
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL