func DialV1Server(server string, tls *tls.Config) (V1Client, error) {
	if len(server) == 0 {
		return nil, errors.New("server is empty; must provide a server")
	}

	opts := []grpc.DialOption{grpc.WithInsecure()}
	if tls != nil {
		opts = []grpc.DialOption{grpc.WithTransportCredentials(credentials.NewTLS(tls))}
	}

	conn, err := grpc.Dial(server, opts...)
	if err != nil {
		return nil, errors.Wrapf(err, "failed to dial server %s", server)
	}

	return NewV1Client(conn), nil
}
// DialV1Server is a convenience function for dialing gubernator instances
DialV1Server is a convenience function for dialing gubernator instances
// DialV1Server is a convenience function for dialing gubernator instances
func DialV1Server(server string, tls *tls.Config) (V1Client, error) {
	if len(server) == 0 {
		return nil, errors.New("server is empty; must provide a server")
	}
	opts := []grpc.DialOption{grpc.WithInsecure()}
	if tls != nil {
		opts = []grpc.DialOption{grpc.WithTransportCredentials(credentials.NewTLS(tls))}
	}
	conn, err := grpc.Dial(server, opts...)
	if err != nil {
		return nil, errors.Wrapf(err, "failed to dial server %s", server)
	}
	return NewV1Client(conn), nil
}
func DialV1Server ( server string , tls * tls . Config ) ( V1Client , error ) { if len ( server ) == 0 { return nil , errors . New ( " " ) } opts := [ ] grpc . DialOption { grpc . WithInsecure ( ) } if tls != nil { opts = [ ] grpc . DialOption { grpc . WithTransportCredentials ( credentials . NewTLS ( tls ) ) } } conn , err := grpc . Dial ( server , opts ... ) if err != nil { return nil , errors . Wrapf ( err , " " , server ) } return NewV1Client ( conn ) , nil }
DialV1Server is a convenience function for dialing gubernator instances
DialV1Server is a convenience function for dialing gubernator instances