mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
8e70cd3596
Makes no sense keeping it as is and TLS can be reused in the future.
36 lines
1.3 KiB
Go
36 lines
1.3 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"
|
|
)
|
|
|
|
type (
|
|
// RPC is an RPC service configuration information.
|
|
RPC struct {
|
|
Address string `yaml:"Address"`
|
|
Enabled bool `yaml:"Enabled"`
|
|
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"`
|
|
Port uint16 `yaml:"Port"`
|
|
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 {
|
|
Address string `yaml:"Address"`
|
|
CertFile string `yaml:"CertFile"`
|
|
Enabled bool `yaml:"Enabled"`
|
|
Port uint16 `yaml:"Port"`
|
|
KeyFile string `yaml:"KeyFile"`
|
|
}
|
|
)
|