Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) InitConnections ¶
InitConnections initializes a set of connections to the given nodes. It returns an error if any connection fails.
type Config ¶
type Config struct { // ServerCA defines the set of root certificate authorities // that servers use if required to verify a client certificate // by the policy in ClientAuth. ServerCAs []string `json:"server_cas"` ServerKey string `json:"server_key"` ServerCert string `json:"server_cert"` ServerSkipVerify bool `json:"server_skip_verify"` // ClientCAs defines the set of root certificate authorities // that clients use when verifying server certificates. // If ClientCAs is nil, TLS uses the host's root CA set. ClientCAs []string `json:"client_cas"` ClientCert string `json:"client_cert"` ClientKey string `json:"client_key"` ClientSkipVerify bool `json:"client_skip_verify"` // ConnectTimeout is the maximum amount of time a dial will wait for // a createClient to complete, in seconds. ConnectTimeout uint `json:"connect_timeout"` }
type RPCHandler ¶
type RPCHandler struct {
CmdHandler model.CommandHandler
}
func (*RPCHandler) Ping ¶
func (h *RPCHandler) Ping(_ struct{}, reply *string) error
Click to show internal directories.
Click to hide internal directories.