mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 01:41:48 +00:00
parent
396c78c722
commit
5a984fdf88
21 changed files with 234 additions and 217 deletions
26
pkg/rpc/rpc_config.go
Normal file
26
pkg/rpc/rpc_config.go
Normal file
|
@ -0,0 +1,26 @@
|
|||
package rpc
|
||||
|
||||
import "github.com/nspcc-dev/neo-go/pkg/util"
|
||||
|
||||
type (
|
||||
// Config is an RPC service configuration information
|
||||
Config struct {
|
||||
Address string `yaml:"Address"`
|
||||
Enabled bool `yaml:"Enabled"`
|
||||
EnableCORSWorkaround bool `yaml:"EnableCORSWorkaround"`
|
||||
// MaxGasInvoke is a maximum amount of gas which
|
||||
// can be spent during RPC call.
|
||||
MaxGasInvoke util.Fixed8 `yaml:"MaxGasInvoke"`
|
||||
Port uint16 `yaml:"Port"`
|
||||
TLSConfig TLSConfig `yaml:"TLSConfig"`
|
||||
}
|
||||
|
||||
// TLSConfig describes SSL/TLS configuration.
|
||||
TLSConfig struct {
|
||||
Address string `yaml:"Address"`
|
||||
CertFile string `yaml:"CertFile"`
|
||||
Enabled bool `yaml:"Enabled"`
|
||||
Port uint16 `yaml:"Port"`
|
||||
KeyFile string `yaml:"KeyFile"`
|
||||
}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue