Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainEvent chainEvent // singleton of type event
Functions ¶
This section is empty.
Types ¶
type GetEventTypes ¶
type GormStore ¶
type GormStore struct {
// contains filtered or unexported fields
}
func (*GormStore) LockedStatus ¶ added in v0.6.1
func (s *GormStore) LockedStatus(fn func(status *ListenerStatus) error) error
LockedStatus runs a transaction on the database manipulating 'status' of type ListenerStatus.
type Listener ¶
type Listener interface { Start() Listener Stop() }
func NewListener ¶
func NewListener( fc flow_helpers.FlowClient, db Store, getTypes GetEventTypes, maxDiff uint64, interval time.Duration, startingHeight uint64, opts ...ListenerOption, ) Listener
type ListenerImpl ¶ added in v0.10.0
type ListenerImpl struct {
// contains filtered or unexported fields
}
func (*ListenerImpl) Start ¶ added in v0.10.0
func (l *ListenerImpl) Start() Listener
func (*ListenerImpl) Stop ¶ added in v0.10.0
func (l *ListenerImpl) Stop()
type ListenerOption ¶ added in v0.9.0
type ListenerOption func(*ListenerImpl)
func WithSystemService ¶ added in v0.9.0
func WithSystemService(svc system.Service) ListenerOption
type ListenerStatus ¶
func (ListenerStatus) TableName ¶
func (ListenerStatus) TableName() string
type Store ¶
type Store interface {
LockedStatus(func(*ListenerStatus) error) error
}
Store manages data regarding tokens.
func NewGormStore ¶
Click to show internal directories.
Click to hide internal directories.