cli,err:=clientv3.New(clientv3.Config{Endpoints:[]string{"127.0.0.1:2379"},Context:ctx,DialTimeout:3*time.Second,DialOptions:[]grpc.DialOption{},})// handle error
ch:=cli.Watch(ctx,"/some/keyspace",clientv3.WithPrefix())forresp:=rangech{for_,event=rangeresp.Events{switchevent.Type{casemvccpb.PUT:// process with put event
casemvccpb.DELETE:// process with delete event
}}}