Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumable ¶
type Consumer ¶
type Consumer interface { Name() string Bootstrap(context.Context, *servicesconn.Connections, idb.Persist) error Consume(context.Context, *servicesconn.Connections, Consumable, idb.Persist) error ConsumeConsensus(context.Context, *servicesconn.Connections, Consumable, idb.Persist) error ParseJSON([]byte) ([]byte, error) }
Consumer takes in Consumables and adds them to the service's backend
type ConsumerCChain ¶ added in v1.2.0
type ConsumerCChain interface { Name() string Consume(context.Context, *servicesconn.Connections, Consumable, *cblock.Block, idb.Persist) error ParseJSON([]byte) ([]byte, error) }
type ConsumerCtx ¶
type ConsumerCtx struct {
// contains filtered or unexported fields
}
ConsumerCtx
func NewConsumerContext ¶
func (*ConsumerCtx) Ctx ¶
func (ic *ConsumerCtx) Ctx() context.Context
func (*ConsumerCtx) DB ¶
func (ic *ConsumerCtx) DB() dbr.SessionRunner
func (*ConsumerCtx) Job ¶
func (ic *ConsumerCtx) Job() *health.Job
func (*ConsumerCtx) Persist ¶ added in v1.1.3
func (ic *ConsumerCtx) Persist() idb.Persist
func (*ConsumerCtx) Time ¶
func (ic *ConsumerCtx) Time() time.Time
Click to show internal directories.
Click to hide internal directories.