Wallet *WalletConfig `mapstructure:"wallet"`
Auth *RPCAuthConfig `mapstructure:"auth"`
Web *WebConfig `mapstructure:"web"`
- Simd *SimdConfig `mapstructure:"simd"`
Websocket *WebsocketConfig `mapstructure:"ws"`
}
Wallet: DefaultWalletConfig(),
Auth: DefaultRPCAuthConfig(),
Web: DefaultWebConfig(),
- Simd: DefaultSimdConfig(),
Websocket: DefaultWebsocketConfig(),
}
}
Closed bool `mapstructure:"closed"`
}
-type SimdConfig struct {
- Enable bool `mapstructure:"enable"`
-}
-
type WebsocketConfig struct {
MaxNumWebsockets int `mapstructure:"max_num_websockets"`
MaxNumConcurrentReqs int `mapstructure:"max_num_concurrent_reqs"`
}
}
-// Default configurable web parameters.
-func DefaultSimdConfig() *SimdConfig {
- return &SimdConfig{
- Enable: false,
- }
-}
-
func DefaultWebsocketConfig() *WebsocketConfig {
return &WebsocketConfig{
MaxNumWebsockets: 25,