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, *utils.Connections, db.Persist) error Consume(context.Context, *utils.Connections, Consumable, db.Persist) error ConsumeConsensus(context.Context, *utils.Connections, Consumable, db.Persist) error ParseJSON([]byte) ([]byte, error) }
Consumer takes in Consumables and adds them to the service's backend
type ConsumerAXChain ¶
type ConsumerCtx ¶
type ConsumerCtx struct {
// contains filtered or unexported fields
}
func NewConsumerContext ¶
func (*ConsumerCtx) Ctx ¶
func (ic *ConsumerCtx) Ctx() context.Context
func (*ConsumerCtx) DB ¶
func (ic *ConsumerCtx) DB() dbr.SessionRunner
func (*ConsumerCtx) Persist ¶
func (ic *ConsumerCtx) Persist() db.Persist
func (*ConsumerCtx) Time ¶
func (ic *ConsumerCtx) Time() time.Time
Click to show internal directories.
Click to hide internal directories.