| 12345678910111213141516171819202122232425262728293031323334 | package testingimport (	"fmt"	"github.com/v2ray/v2ray-core/proxy/internal")var count = 0func randomString() string {	count++	return fmt.Sprintf("-%d", count)}func RegisterInboundConnectionHandlerCreator(prefix string, creator internal.InboundConnectionHandlerCreator) (string, error) {	for {		name := prefix + randomString()		err := internal.RegisterInboundConnectionHandlerFactory(name, creator)		if err != internal.ErrorNameExists {			return name, err		}	}}func RegisterOutboundConnectionHandlerCreator(prefix string, creator internal.OutboundConnectionHandlerCreator) (string, error) {	for {		name := prefix + randomString()		err := internal.RegisterOutboundConnectionHandlerFactory(name, creator)		if err != internal.ErrorNameExists {			return name, err		}	}}
 |