bridge_pending_activity

package
v1.7.41 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MIGRATION_DIRECOTRY = "projection/bridge_activity/bridge_pending_activity/migrations"
)

Variables

View Source
var (
	NewBridgePendingActivitiesView = bridge_pending_activity_view.NewBridgePendingActivitiesView
	UpdateLastHandledEventHeight   = (*BridgePendingActivity).UpdateLastHandledEventHeight
)

Functions

This section is empty.

Types

type BridgePendingActivity

type BridgePendingActivity struct {
	*rdbprojectionbase.Base
	// contains filtered or unexported fields
}

func New added in v1.3.4

func New(
	config Config,
	logger applogger.Logger,
	rdbConn rdb.Conn,
	migrationHelper migrationhelper.MigrationHelper,
) *BridgePendingActivity

func (*BridgePendingActivity) Config

func (projection *BridgePendingActivity) Config() *Config

func (*BridgePendingActivity) GetEventsToListen

func (_ *BridgePendingActivity) GetEventsToListen() []string

func (*BridgePendingActivity) HandleEvents

func (projection *BridgePendingActivity) HandleEvents(height int64, events []event_entity.Event) error

func (*BridgePendingActivity) OnInit

func (projection *BridgePendingActivity) OnInit() error

type ChannelId added in v1.3.4

type ChannelId = string

type Config

type Config struct {
	ThisChainName      string                    `mapstructure:"this_chain_name"`
	CounterPartyChains []CounterPartyChainConfig `mapstructure:"counterparty_chains"`
}

func ConfigFromInterface added in v1.3.1

func ConfigFromInterface(data interface{}) (Config, error)

type CounterPartyChainConfig added in v1.3.4

type CounterPartyChainConfig struct {
	ChainName      string `mapstructure:"name"`
	ChannelId      string `mapstructure:"channel_id"`
	StartingHeight int64  `mapstructure:"starting_height"`
}

Jump to

Keyboard shortcuts

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