package
0.0.0-20230530162105-6dcdc0ec4805
Repository: https://github.com/consideritdone/landslidecore.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DialTCPFn dials the given tcp addr, using the given timeoutReadWrite and privKey for the authenticated encryption handshake.
DialUnixFn dials the given unix socket.
GenFilePV generates a new validator with randomly generated private key and sets the filePaths, but does not call Save().
GetFreeLocalhostAddrPort returns a free localhost:port address.
IsConnTimeout returns a boolean indicating whether the error is known to report that a connection timeout occurred.
LoadFilePV loads a FilePV from the filePaths.
LoadFilePVEmptyState loads a FilePV from the given keyFilePath, with an empty LastSignState.
LoadOrGenFilePV loads a FilePV from the given filePaths or else generates a new one and saves it to the filePaths.
NewFilePV generates a new validator from the given key and paths.
NewRetrySignerClient returns RetrySignerClient.
NewSignerClient returns an instance of SignerClient.
NewSignerDialerEndpoint returns a SignerDialerEndpoint that will dial using the given dialer and respond to any signature requests over the connection using the given privVal.
NewSignerListener creates a new SignerListenerEndpoint using the corresponding listen address.
NewSignerListenerEndpoint returns an instance of SignerListenerEndpoint.
No description provided by the author
NewTCPListener returns a listener that accepts authenticated encrypted connections using the given secretConnKey and the default timeout values.
NewUnixListener returns a listener that accepts unencrypted connections using the default timeout values.
SignerDialerEndpointConnRetries sets the amount of attempted retries to acceptNewConnection.
SignerDialerEndpointRetryWaitInterval sets the retry wait interval to a custom value.
SignerDialerEndpointTimeoutReadWrite sets the read and write timeout for connections from client processes.
SignerListenerEndpointTimeoutReadWrite sets the read and write timeout for connections from external signing processes.
TCPListenerTimeoutAccept sets the timeout for the listener.
TCPListenerTimeoutReadWrite sets the read and write timeout for connections from external signing processes.
UnixListenerTimeoutAccept sets the timeout for the listener.
UnixListenerTimeoutReadWrite sets the read and write timeout for connections from external signing processes.

# Variables

Socket errors.
Socket errors.
Socket errors.
Socket errors.
Socket errors.
Socket errors.

# Structs

EndpointTimeoutError occurs when endpoint times out.
FilePV implements PrivValidator using data persisted to disk to prevent double signing.
FilePVKey stores the immutable part of PrivValidator.
FilePVLastSignState stores the mutable part of PrivValidator.
RemoteSignerError allows (remote) validators to include meaningful error descriptions in their reply.
RetrySignerClient wraps SignerClient adding retry for each operation (except Ping) w/ a timeout.
SignerClient implements PrivValidator.
SignerDialerEndpoint dials using its dialer and responds to any signature requests using its privVal.
SignerListenerEndpoint listens for an external process to dial in and keeps the connection alive by dropping and reconnecting.
No description provided by the author
TCPListener wraps a *net.TCPListener to standardize protocol timeouts and potentially other tuning parameters.
UnixListener wraps a *net.UnixListener to standardize protocol timeouts and potentially other tuning parameters.

# Type aliases

SignerListenerEndpointOption sets an optional parameter on the SignerListenerEndpoint.
SignerServiceEndpointOption sets an optional parameter on the SignerDialerEndpoint.
SocketDialer dials a remote address and returns a net.Conn or an error.
TCPListenerOption sets an optional parameter on the tcpListener.
No description provided by the author
ValidationRequestHandlerFunc handles different remoteSigner requests.