marlin

package
v0.0.0-...-113e32b Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowServicedChainMessages

func AllowServicedChainMessages(servicedChainId uint8)

ALlowServicedChainMessages allows handlers to register a single chain to allow through marlin side connector. Initially there is no blockchain message allowed to passthrough. One can register the chainId to look for in messages correspoding to chains available in marlinTypes.servicedChains to allow.

func RunDataConnectHandler

func RunDataConnectHandler(marlinAddr string,
	marlinTo chan marlinTypes.MarlinMessage,
	marlinFrom chan marlinTypes.MarlinMessage,
	direction string)

Run acts as the entry point to marlin side connection logic for data connect interface. Marlin Side Connector requires two channels for sending / recieving messages from peer side connector.

func RunSpamFilterHandler

func RunSpamFilterHandler(marlinAddr string,
	marlinTo chan marlinTypes.MarlinMessage,
	marlinFrom chan marlinTypes.MarlinMessage)

Run acts as the entry point to marlin side connection logic for data connect interface. Marlin Side Connector requires two channels for sending / recieving messages from peer side connector.

Types

type MarlinHandler

type MarlinHandler struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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