Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details struct { RPC *RPCConfig `yaml:"rpc"` REST *RESTConfig `yaml:"rest"` }
Details represents a node details for a remote node
func DefaultDetails ¶
func DefaultDetails() *Details
func NewDetails ¶
func NewDetails(rpc *RPCConfig, rest *RESTConfig) *Details
type RESTConfig ¶
type RESTConfig struct {
Address string `yaml:"address"`
}
RESTConfig contains the configuration for the REST endpoint
func DefaultRESTConfig ¶
func DefaultRESTConfig() *RESTConfig
DefaultRESTConfig returns the default instance of RESTConfig
func NewRESTConfig ¶
func NewRESTConfig(address string) *RESTConfig
NewRESTConfig allows to build a new RESTConfig instance
type RPCConfig ¶
type RPCConfig struct { ClientName string `yaml:"client_name"` Address string `yaml:"address"` MaxConnections int `yaml:"max_connections"` }
RPCConfig contains the configuration for the RPC endpoint
func DefaultRPCConfig ¶
func DefaultRPCConfig() *RPCConfig
DefaultRPCConfig returns the default instance of RPCConfig
func NewRPCConfig ¶
NewRPCConfig allows to build a new RPCConfig instance
Click to show internal directories.
Click to hide internal directories.