Documentation ¶
Index ¶
- Variables
- func PayloadKeyKey(key structs.PayloadKey) ds.Key
- type DBInter
- type Datastore
- func (s *Datastore) GetPayload(ctx context.Context, fork structs.ForkVersion, key structs.PayloadKey) (payload structs.BlockAndTraceExtended, err error)
- func (s *Datastore) GetSlotRawPayload(ctx context.Context, key structs.PayloadKey) (output [][]byte, err error)
- func (s *Datastore) PutPayload(ctx context.Context, key structs.PayloadKey, ...) error
- type TTLStorage
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func PayloadKeyKey ¶
func PayloadKeyKey(key structs.PayloadKey) ds.Key
Types ¶
type Datastore ¶
type Datastore struct { TTLStorage DBInter }
func NewDatastore ¶
func NewDatastore(t TTLStorage, db DBInter) *Datastore
func (*Datastore) GetPayload ¶
func (s *Datastore) GetPayload(ctx context.Context, fork structs.ForkVersion, key structs.PayloadKey) (payload structs.BlockAndTraceExtended, err error)
func (*Datastore) GetSlotRawPayload ¶ added in v0.4.13
func (*Datastore) PutPayload ¶
func (s *Datastore) PutPayload(ctx context.Context, key structs.PayloadKey, payload structs.BlockAndTraceExtended, ttl time.Duration) error
Click to show internal directories.
Click to hide internal directories.