Documentation ¶
Index ¶
- Constants
- func NewGapFillTipSetTask(ctx context.Context, ts *types.TipSet, tasks []string) (*asynq.Task, error)
- func NewIndexTipSetTask(ctx context.Context, ts *types.TipSet, tasks []string) (*asynq.Task, error)
- type AsynqGapFillTipSetTaskHandler
- type AsynqTipSetTaskHandler
- type GapFillTipSetPayload
- type IndexTipSetPayload
Constants ¶
View Source
const (
TypeGapFillTipSet = "tipset:gapfill"
)
View Source
const (
TypeIndexTipSet = "tipset:index"
)
Variables ¶
This section is empty.
Functions ¶
func NewGapFillTipSetTask ¶
Types ¶
type AsynqGapFillTipSetTaskHandler ¶
type AsynqGapFillTipSetTaskHandler struct {
// contains filtered or unexported fields
}
func NewGapFillHandler ¶
func NewGapFillHandler(indexer indexer.Indexer, db *storage.Database) *AsynqGapFillTipSetTaskHandler
func (*AsynqGapFillTipSetTaskHandler) HandleGapFillTipSetTask ¶
type AsynqTipSetTaskHandler ¶
type AsynqTipSetTaskHandler struct {
// contains filtered or unexported fields
}
func NewIndexHandler ¶
func NewIndexHandler(i indexer.Indexer) *AsynqTipSetTaskHandler
func (*AsynqTipSetTaskHandler) HandleIndexTipSetTask ¶
type GapFillTipSetPayload ¶
type GapFillTipSetPayload struct { TipSet *types.TipSet // TODO include the height of the tipset here to correctly mark the epoch as gap filled cuz Null rounds Tasks []string TraceCarrier *tracing.TraceCarrier `json:",omitempty"` }
func (*GapFillTipSetPayload) HasTraceCarrier ¶
func (g *GapFillTipSetPayload) HasTraceCarrier() bool
HasTraceCarrier returns true iff payload contains a trace.
type IndexTipSetPayload ¶
type IndexTipSetPayload struct { TipSet *types.TipSet Tasks []string TraceCarrier *tracing.TraceCarrier `json:",omitempty"` }
func (*IndexTipSetPayload) HasTraceCarrier ¶
func (i *IndexTipSetPayload) HasTraceCarrier() bool
HasTraceCarrier returns true iff payload contains a trace.
Click to show internal directories.
Click to hide internal directories.