bridge_activity_matcher

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MIGRATION_TABLE_NAME = "bridge_activity_matcher_schema_migrations"
	MIGRATION_DIRECOTRY  = "projection/bridge_activity/bridge_activity_matcher/migrations"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeActivityMatcher

type BridgeActivityMatcher struct {
	projection_usecase.Base
	// contains filtered or unexported fields
}

func New

func New(logger applogger.Logger, rdbConn rdb.Conn, config *appprojection.Config) *BridgeActivityMatcher

func (*BridgeActivityMatcher) Config

func (cronJob *BridgeActivityMatcher) Config() *Config

func (*BridgeActivityMatcher) Exec

func (cronJob *BridgeActivityMatcher) Exec() error

func (*BridgeActivityMatcher) HandleIncoming

func (cronJob *BridgeActivityMatcher) HandleIncoming(
	rows []view.BridgePendingActivityReadRow,
	bridgePendingActivities *view.BridgePendingActivities,
) error

func (*BridgeActivityMatcher) HandleOutgoing

func (cronJob *BridgeActivityMatcher) HandleOutgoing(
	rows []view.BridgePendingActivityReadRow,
	bridgePendingActivities *view.BridgePendingActivities,
) error

func (*BridgeActivityMatcher) Id

func (cronJob *BridgeActivityMatcher) Id() string

func (*BridgeActivityMatcher) Interval

func (cronJob *BridgeActivityMatcher) Interval() time.Duration

func (*BridgeActivityMatcher) OnInit

func (cronJob *BridgeActivityMatcher) OnInit() error

type Config

type Config struct {
	Interval               time.Duration `mapstructure:"interval"`
	CryptoOrgChainDatabase struct {
		SSL      bool   `mapstructure:"ssl"`
		Host     string `mapstructure:"host"`
		Port     int32  `mapstructure:"port"`
		Username string `mapstructure:"username"`
		Password string `mapstructure:"password"`
		Name     string `mapstructure:"name"`
		Schema   string `mapstructure:"schema"`
	} `mapstructure:"crypto_org_chain_database"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL