Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HorcruxConnection ¶ added in v0.1.0
type HorcruxConnection interface {
SendRequest(request cometprotoprivval.Message) (*cometprotoprivval.Message, error)
}
type HorcruxGRPCClient ¶ added in v0.1.0
type HorcruxGRPCClient struct {
// contains filtered or unexported fields
}
func NewHorcruxGRPCClient ¶ added in v0.1.0
func NewHorcruxGRPCClient( logger cometlog.Logger, address string, ) (*HorcruxGRPCClient, error)
func (*HorcruxGRPCClient) SendRequest ¶ added in v0.1.0
func (c *HorcruxGRPCClient) SendRequest(req cometprotoprivval.Message) (*cometprotoprivval.Message, error)
type ReconnRemoteSigner ¶
type ReconnRemoteSigner struct { cometservice.BaseService // contains filtered or unexported fields }
ReconnRemoteSigner dials using its dialer and responds to any signature requests using its privVal.
func NewReconnRemoteSigner ¶
func NewReconnRemoteSigner( address string, logger cometlog.Logger, horcruxConnection HorcruxConnection, dialer net.Dialer, ) *ReconnRemoteSigner
NewReconnRemoteSigner return a ReconnRemoteSigner that will dial using the given dialer and respond to any signature requests over the connection using the given privVal.
If the connection is broken, the ReconnRemoteSigner will attempt to reconnect.
func (*ReconnRemoteSigner) OnStart ¶
func (rs *ReconnRemoteSigner) OnStart() error
OnStart implements cmn.Service.
func (*ReconnRemoteSigner) OnStop ¶
func (rs *ReconnRemoteSigner) OnStop()
OnStop implements cmn.Service.
Click to show internal directories.
Click to hide internal directories.