Documentation ¶
Index ¶
- type Config
- type LocalEndpoints
- type Node
- type Option
- type SSHServer
- type Server
- type ServerOption
- func WithGRPCSecure(credentials credentials.TransportCredentials, key *ecdsa.PrivateKey) ServerOption
- func WithGRPCServer() ServerOption
- func WithGRPCServerMetrics() ServerOption
- func WithQUIC(cfg *tls.Config) ServerOption
- func WithRESTSecure(key *ecdsa.PrivateKey) ServerOption
- func WithRESTServer() ServerOption
- func WithSSH(cfg ssh.ProxyServerConfig, privateKey *ecdsa.PrivateKey, ...) ServerOption
- func WithServerLog(log *zap.Logger) ServerOption
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Node nodeConfig `yaml:"node"` NPP npp.Config `yaml:"npp"` Log logging.Config `yaml:"log"` Blockchain *blockchain.Config `yaml:"blockchain"` Eth accounts.EthConfig `yaml:"ethereum" required:"false"` DWH dwh.YAMLConfig `yaml:"dwh"` MetricsListenAddr string `yaml:"metrics_listen_addr" default:"127.0.0.1:14003"` Benchmarks benchmarks.Config `yaml:"benchmarks"` Matcher *matcher.YAMLConfig `yaml:"matcher"` Predictor *optimus.PredictorConfig `yaml:"predictor"` Debug *debug.Config `yaml:"debug"` SSH *ssh.ProxyServerConfig `yaml:"ssh"` }
type LocalEndpoints ¶ added in v0.4.5
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
type Server ¶ added in v0.4.5
type Server struct {
// contains filtered or unexported fields
}
Server is a server for LocalNode instance.
Its responsibility is to manage network part, i.e. creating TCP servers and exposing API provided outside.
func (*Server) LocalEndpoints ¶ added in v0.4.5
func (m *Server) LocalEndpoints() LocalEndpoints
type ServerOption ¶ added in v0.4.5
type ServerOption func(o *serverOptions) error
func WithGRPCSecure ¶ added in v0.4.5
func WithGRPCSecure(credentials credentials.TransportCredentials, key *ecdsa.PrivateKey) ServerOption
func WithGRPCServer ¶ added in v0.4.5
func WithGRPCServer() ServerOption
func WithGRPCServerMetrics ¶ added in v0.4.5
func WithGRPCServerMetrics() ServerOption
func WithQUIC ¶ added in v0.4.17
func WithQUIC(cfg *tls.Config) ServerOption
func WithRESTSecure ¶ added in v0.4.5
func WithRESTSecure(key *ecdsa.PrivateKey) ServerOption
func WithRESTServer ¶ added in v0.4.5
func WithRESTServer() ServerOption
func WithSSH ¶ added in v0.4.10
func WithSSH(cfg ssh.ProxyServerConfig, privateKey *ecdsa.PrivateKey, credentials *xgrpc.TransportCredentials, market blockchain.MarketAPI, log *zap.SugaredLogger) ServerOption
func WithServerLog ¶ added in v0.4.5
func WithServerLog(log *zap.Logger) ServerOption
Click to show internal directories.
Click to hide internal directories.