You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: Cluster.go
    path of file: ./repos/gonet/base/cluster/rpc
    
    the code of the file until where you have to start completion: package rpc

import (
	"context"
	"gonet/actor"
	"gonet/base"
	"gonet/base/cluster/etv3"
	"gonet/base/vector"
	"gonet/network"
	"gonet/rpc"
	"reflect"
	"sync"
)

type (
	Service   etv3.Service
	Master    etv3.Master
	Snowflake etv3.Snowflake
	MailBox   etv3.MailBox
	//集群包管理
	IClusterPacket interface {
		actor.IActor
		SetClusterId(uint32)
	}

	ClusterNode struct {
		*network.ClientSocket
		*rpc.ClusterInfo
	}

	//集群客户端
	Cluster struct {
		actor.Actor
		clusterMap      map[uint32]*ClusterNode
		clusterLocker   *sy
    
func (c *Cluster) AddCluster(info *rpc.ClusterInfo) {
	client := new(network.ClientSocket)
	client.Init(info.Ip, int(info.Port))
	packet := reflect.New(reflect.ValueOf(c.packet).Elem().Type()).Interface().(IClusterPacket)
	packet.Init()
	packet.SetClusterId(info.Id())
	client.BindPacketFunc(actor.MGR.PacketFunc)
	for i := 0; i < c.packetFuncList.Len(); i++ {
		client.BindPacketFunc(c.packetFuncList.Get(i))
	}
	c.clusterLocker.Lock()
	c.clusterMap[info.Id()] = &ClusterNode{ClientSocket: client, ClusterInfo: info}
	c.clusterLocker.Unlock()
	c.hashRing.Add(info.IpString())
	client.Start()
}