Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register register skynet cluster node default withArgsCodec(json) and Timeout(5*second)
Examples:
Register("node1", "192.0.2.1:6789", client.WithArgsCodec(&client.ArgsCodecJson{})
If you want to reload node address to port:6790, old client will close after 30s Register("node1", "192.0.2.1:6790")
func ReloadCluster ¶
ReloadCluster register multi skynet cluster node
Default withArgsCodec(json) and Timeout(5*second)
# It's safely to Reload multi times with same config # If client connecting. It will closed after 30s
Examples:
ReloadCluster("node1", map[string]string{"node":"127.0.0.1:8080"}, client.WithArgsCodec(&client.ArgsCodecJson{})
Returns register fail nodesErr