Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectorConfig ¶
type ConnectorConfig struct { NodeAddress string DonId string Gateways []ConnectorGatewayConfig WsClientConfig network.WebSocketClientConfig MinHandshakeChallengeLen int }
type ConnectorGatewayConfig ¶
type GatewayConnector ¶
type GatewayConnector interface { job.ServiceCtx network.ConnectionInitiator SendToGateway(ctx context.Context, gatewayId string, msg *gateway.Message) error }
GatewayConnector is a component run by Nodes to connect to a set of Gateways.
func NewGatewayConnector ¶
func NewGatewayConnector(config *ConnectorConfig, signer Signer, handler GatewayConnectorHandler, clock common.Clock, lggr logger.Logger) (GatewayConnector, error)
type GatewayConnectorHandler ¶
Click to show internal directories.
Click to hide internal directories.