mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-29 09:27:36 +00:00
6b8957243a
In order to avoid dependency cycle at the next commits: imports github.com/nspcc-dev/neo-go/pkg/config imports github.com/nspcc-dev/neo-go/pkg/wallet imports github.com/nspcc-dev/neo-go/pkg/vm imports github.com/nspcc-dev/neo-go/pkg/smartcontract/nef imports github.com/nspcc-dev/neo-go/pkg/config
29 lines
1.2 KiB
Go
29 lines
1.2 KiB
Go
package config
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/core/storage"
|
|
"github.com/nspcc-dev/neo-go/pkg/network/metrics"
|
|
"github.com/nspcc-dev/neo-go/pkg/rpc"
|
|
)
|
|
|
|
// ApplicationConfiguration config specific to the node.
|
|
type ApplicationConfiguration struct {
|
|
Address string `yaml:"Address"`
|
|
AttemptConnPeers int `yaml:"AttemptConnPeers"`
|
|
DBConfiguration storage.DBConfiguration `yaml:"DBConfiguration"`
|
|
DialTimeout time.Duration `yaml:"DialTimeout"`
|
|
LogPath string `yaml:"LogPath"`
|
|
MaxPeers int `yaml:"MaxPeers"`
|
|
MinPeers int `yaml:"MinPeers"`
|
|
NodePort uint16 `yaml:"NodePort"`
|
|
PingInterval time.Duration `yaml:"PingInterval"`
|
|
PingTimeout time.Duration `yaml:"PingTimeout"`
|
|
Pprof metrics.Config `yaml:"Pprof"`
|
|
Prometheus metrics.Config `yaml:"Prometheus"`
|
|
ProtoTickInterval time.Duration `yaml:"ProtoTickInterval"`
|
|
Relay bool `yaml:"Relay"`
|
|
RPC rpc.Config `yaml:"RPC"`
|
|
UnlockWallet Wallet `yaml:"UnlockWallet"`
|
|
}
|