github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/config/rpc_config.go (about) 1 package config 2 3 import ( 4 "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" 5 ) 6 7 type ( 8 // RPC is an RPC service configuration information. 9 RPC struct { 10 BasicService `yaml:",inline"` 11 EnableCORSWorkaround bool `yaml:"EnableCORSWorkaround"` 12 // MaxGasInvoke is the maximum amount of GAS which 13 // can be spent during an RPC call. 14 MaxGasInvoke fixedn.Fixed8 `yaml:"MaxGasInvoke"` 15 MaxIteratorResultItems int `yaml:"MaxIteratorResultItems"` 16 MaxFindResultItems int `yaml:"MaxFindResultItems"` 17 MaxFindStorageResultItems int `yaml:"MaxFindStoragePageSize"` 18 MaxNEP11Tokens int `yaml:"MaxNEP11Tokens"` 19 MaxRequestBodyBytes int `yaml:"MaxRequestBodyBytes"` 20 MaxRequestHeaderBytes int `yaml:"MaxRequestHeaderBytes"` 21 MaxWebSocketClients int `yaml:"MaxWebSocketClients"` 22 SessionEnabled bool `yaml:"SessionEnabled"` 23 SessionExpirationTime int `yaml:"SessionExpirationTime"` 24 SessionBackedByMPT bool `yaml:"SessionBackedByMPT"` 25 SessionPoolSize int `yaml:"SessionPoolSize"` 26 StartWhenSynchronized bool `yaml:"StartWhenSynchronized"` 27 TLSConfig TLS `yaml:"TLSConfig"` 28 } 29 30 // TLS describes SSL/TLS configuration. 31 TLS struct { 32 BasicService `yaml:",inline"` 33 CertFile string `yaml:"CertFile"` 34 KeyFile string `yaml:"KeyFile"` 35 } 36 )