Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Rpc.Server.Config
Synopsis
- type RpcConfig = RpcConfigF Identity
- type PartialRpcConfig = RpcConfigF Last
- data RpcConfigF (m :: Type -> Type) = RpcConfig {
- isEnabled :: !(m Bool)
- rpcSocketPath :: !(m SocketPath)
- nodeSocketPath :: !(m SocketPath)
- makeRpcConfig :: MonadError String m => PartialRpcConfig -> m RpcConfig
- nodeSocketPathToRpcSocketPath :: SocketPath -> SocketPath
Documentation
type RpcConfig = RpcConfigF Identity Source #
type PartialRpcConfig = RpcConfigF Last Source #
data RpcConfigF (m :: Type -> Type) Source #
RPC server configuration, which is a part of cardano-node configuration.
Constructors
RpcConfig | |
Fields
|
Instances
makeRpcConfig :: MonadError String m => PartialRpcConfig -> m RpcConfig Source #
Build RPC Config
Uses the following defaults if the values are not provided
* RPC is disabled
* rpc.sock
is placed in the same path as the node socket
Validates if the node socket is enabled if RPC is enabled.
nodeSocketPathToRpcSocketPath :: SocketPath -> SocketPath Source #
Convert node socket path to a default rpc socket path.
By default it's rpc.sock
in the same directory as node socket path.