laconicd/server/rpc/config.go

17 lines
559 B
Go
Raw Normal View History

2018-08-09 10:36:47 +00:00
package rpc
// Config contains configuration fields that determine the
// behavior of the RPC HTTP server.
type Config struct {
// EnableRPC defines whether or not to enable the RPC server
2018-08-09 10:36:47 +00:00
EnableRPC bool
2018-08-09 10:36:47 +00:00
// RPCAddr defines the IP address to listen on
2018-08-09 10:36:47 +00:00
RPCAddr string
2018-08-09 10:36:47 +00:00
// RPCPort defines the port to listen on
2018-08-09 10:36:47 +00:00
RPCPort int
2018-08-09 10:36:47 +00:00
// RPCCORSDomains defines list of domains to enable CORS headers for (used by browsers)
RPCCORSDomains []string
// RPCVhosts defines list of domains to listen on (useful if Tendermint is addressable via DNS)
2018-08-09 10:36:47 +00:00
RPCVHosts []string
2018-08-09 10:36:47 +00:00
}