mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
6b4dd5703e
There are no changes visible from the user side (at least for those users who doesn't put Prometheus's or pprof's port in quotes), just internal refactoring. From now and on, BasicService configuration is used by RPC server config, TLS for RPC server, pprof and Prometheus.
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"
|
|
)
|
|
|
|
type (
|
|
// RPC is an RPC service configuration information.
|
|
RPC struct {
|
|
BasicService `yaml:",inline"`
|
|
EnableCORSWorkaround bool `yaml:"EnableCORSWorkaround"`
|
|
// MaxGasInvoke is the maximum amount of GAS which
|
|
// can be spent during an RPC call.
|
|
MaxGasInvoke fixedn.Fixed8 `yaml:"MaxGasInvoke"`
|
|
MaxIteratorResultItems int `yaml:"MaxIteratorResultItems"`
|
|
MaxFindResultItems int `yaml:"MaxFindResultItems"`
|
|
MaxNEP11Tokens int `yaml:"MaxNEP11Tokens"`
|
|
MaxWebSocketClients int `yaml:"MaxWebSocketClients"`
|
|
SessionEnabled bool `yaml:"SessionEnabled"`
|
|
SessionExpirationTime int `yaml:"SessionExpirationTime"`
|
|
SessionBackedByMPT bool `yaml:"SessionBackedByMPT"`
|
|
SessionPoolSize int `yaml:"SessionPoolSize"`
|
|
StartWhenSynchronized bool `yaml:"StartWhenSynchronized"`
|
|
TLSConfig TLS `yaml:"TLSConfig"`
|
|
}
|
|
|
|
// TLS describes SSL/TLS configuration.
|
|
TLS struct {
|
|
BasicService `yaml:",inline"`
|
|
CertFile string `yaml:"CertFile"`
|
|
KeyFile string `yaml:"KeyFile"`
|
|
}
|
|
)
|