Documentation ¶
Index ¶
- Variables
- func CallRpc(method string, args, reply interface{}) error
- func InitClients(addresses []string)
- type BackendClients
- func (this *BackendClients) GetAddresses() []string
- func (this *BackendClients) GetClient(addr string) (*rpc.Client, bool)
- func (this *BackendClients) InitAddresses(addresses []string)
- func (this *BackendClients) InitClients(clients map[string]*rpc.Client)
- func (this *BackendClients) ReplaceClient(addr string, client *rpc.Client)
Constants ¶
This section is empty.
Variables ¶
View Source
var Clients = &BackendClients{Clients: make(map[string]*rpc.Client)}
Functions ¶
func InitClients ¶
func InitClients(addresses []string)
Types ¶
type BackendClients ¶
func (*BackendClients) GetAddresses ¶
func (this *BackendClients) GetAddresses() []string
func (*BackendClients) GetClient ¶
func (this *BackendClients) GetClient(addr string) (*rpc.Client, bool)
func (*BackendClients) InitAddresses ¶
func (this *BackendClients) InitAddresses(addresses []string)
func (*BackendClients) InitClients ¶
func (this *BackendClients) InitClients(clients map[string]*rpc.Client)
func (*BackendClients) ReplaceClient ¶
func (this *BackendClients) ReplaceClient(addr string, client *rpc.Client)
Click to show internal directories.
Click to hide internal directories.