Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpServiceName = "op-subscriber" OpQueryTransfer = "tm.event='Tx' AND new_operation.operation_type='TRANSFER'" OpPoolSize = 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catchupper ¶
type Catchupper struct {
// contains filtered or unexported fields
}
Catchupper catches up old unsigned operations from core.
func NewCatchupper ¶
func NewCatchupper(rarimo *grpc.ClientConn, voter *Voter, log *logan.Entry) *Catchupper
NewCatchupper creates the catchup instance for adding all unsigned operations to the pool
func (*Catchupper) Run ¶
func (c *Catchupper) Run(ctx context.Context)
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Subscriber subscribes to the NewOperation events on the tendermint core.
func NewSubscriber ¶
func NewSubscriber(voter *Voter, client *http.HTTP, rarimo *grpc.ClientConn, query string, log *logan.Entry, cfg SubscriberConfig) *Subscriber
NewSubscriber creates the subscriber instance for listening to new operations
func NewTransferSubscriber ¶
func NewTransferSubscriber(voter *Voter, client *http.HTTP, rarimo *grpc.ClientConn, log *logan.Entry, cfg SubscriberConfig) *Subscriber
func (*Subscriber) Run ¶
func (s *Subscriber) Run(ctx context.Context)
type SubscriberConfig ¶
type Subscriberer ¶
type Subscriberer interface {
Subscriber() SubscriberConfig
}
func NewSubscriberer ¶
func NewSubscriberer(getter kv.Getter) Subscriberer
type Verifier ¶
type Verifier interface {
Verify(ctx context.Context, operation rarimotypes.Operation) (rarimotypes.VoteType, error)
}
type Voter ¶
type Voter struct {
// contains filtered or unexported fields
}
func NewVoter ¶
func NewVoter(chain string, log *logan.Entry, broadcaster broadcaster.Broadcaster, verifiers map[rarimotypes.OpType]Verifier) *Voter
Click to show internal directories.
Click to hide internal directories.