Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for addReport (0.12 sec)

  1. src/cmd/gofmt/gofmt.go

    			r.Report(err)
    		}
    		next <- r.getState() // Release the next task.
    		s.sem.Release(weight)
    	}()
    }
    
    // AddReport prints an error to s after the output of any previously-added
    // tasks, causing the final exit code to be nonzero.
    func (s *sequencer) AddReport(err error) {
    	s.Add(0, func(*reporter) error { return err })
    }
    
    // GetExitCode waits for all previously-added tasks to complete, then returns an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. api/go1.18.txt

    pkg net, func TCPAddrFromAddrPort(netip.AddrPort) *TCPAddr
    pkg net, func UDPAddrFromAddrPort(netip.AddrPort) *UDPAddr
    pkg net, method (*Resolver) LookupNetIP(context.Context, string, string) ([]netip.Addr, error)
    pkg net, method (*TCPAddr) AddrPort() netip.AddrPort
    pkg net, method (*UDPAddr) AddrPort() netip.AddrPort
    pkg net, method (*UDPConn) ReadFromUDPAddrPort([]uint8) (int, netip.AddrPort, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. src/net/udpsock.go

    type UDPAddr struct {
    	IP   IP
    	Port int
    	Zone string // IPv6 scoped addressing zone
    }
    
    // AddrPort returns the UDPAddr a as a netip.AddrPort.
    //
    // If a.Port does not fit in a uint16, it's silently truncated.
    //
    // If a is nil, a zero value is returned.
    func (a *UDPAddr) AddrPort() netip.AddrPort {
    	if a == nil {
    		return netip.AddrPort{}
    	}
    	na, _ := netip.AddrFromSlice(a.IP)
    	na = na.WithZone(a.Zone)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 16:58:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/LibrariesSourceGenerator.java

        private void addImports() throws IOException {
            addImport(NonNullApi.class);
            addImport(MinimalExternalModuleDependency.class);
            addImport(PluginDependency.class);
            addImport(ExternalModuleDependencyBundle.class);
            addImport(MutableVersionConstraint.class);
            addImport(Provider.class);
            addImport(ObjectFactory.class);
            addImport(ProviderFactory.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 36K bytes
    - Viewed (0)
  5. src/net/udpsock_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer conn.Close()
    	addr := conn.LocalAddr()
    	addrPort := addr.(*UDPAddr).AddrPort()
    	buf := make([]byte, 8)
    
    	allocs := testing.AllocsPerRun(1000, func() {
    		_, _, err := conn.WriteMsgUDPAddrPort(buf, nil, addrPort)
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, _, _, _, err = conn.ReadMsgUDPAddrPort(buf, nil)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  6. src/net/netip/netip.go

    }
    
    // AddrPort is an IP and a port number.
    type AddrPort struct {
    	ip   Addr
    	port uint16
    }
    
    // AddrPortFrom returns an [AddrPort] with the provided IP and port.
    // It does not allocate.
    func AddrPortFrom(ip Addr, port uint16) AddrPort { return AddrPort{ip: ip, port: port} }
    
    // Addr returns p's IP address.
    func (p AddrPort) Addr() Addr { return p.ip }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. src/net/tcpsock.go

    	IP   IP
    	Port int
    	Zone string // IPv6 scoped addressing zone
    }
    
    // AddrPort returns the [TCPAddr] a as a [netip.AddrPort].
    //
    // If a.Port does not fit in a uint16, it's silently truncated.
    //
    // If a is nil, a zero value is returned.
    func (a *TCPAddr) AddrPort() netip.AddrPort {
    	if a == nil {
    		return netip.AddrPort{}
    	}
    	na, _ := netip.AddrFromSlice(a.IP)
    	na = na.WithZone(a.Zone)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/kube.go

    		if err != nil {
    			return netip.AddrPort{}, err
    		}
    		addr = address.(netip.AddrPort)
    	} else {
    		name := types.NamespacedName{Name: eastWestIngressServiceName, Namespace: i.cfg.SystemNamespace}
    		addr = i.CustomIngressFor(primary, name, eastWestIngressIstioLabel).DiscoveryAddresses()[0]
    	}
    	if !addr.IsValid() {
    		return netip.AddrPort{}, fmt.Errorf("failed to get ingress IP for %s", primary.Name())
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. pkg/registry/core/service/strategy_test.go

    			patch:  patches(setTypeClusterIP, addPort),
    			expect: makeValidServiceCustom(addPort),
    		}, {
    			name:   "don't clear nodePorts when adding a port with NodePort",
    			svc:    makeValidServiceCustom(setTypeLoadBalancer, setNodePorts),
    			patch:  patches(setTypeClusterIP, addPort, setNodePorts),
    			expect: makeValidServiceCustom(addPort, setNodePorts),
    		}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    package astutil // import "golang.org/x/tools/go/ast/astutil"
    
    import (
    	"fmt"
    	"go/ast"
    	"go/token"
    	"strconv"
    	"strings"
    )
    
    // AddImport adds the import path to the file f, if absent.
    func AddImport(fset *token.FileSet, f *ast.File, path string) (added bool) {
    	return AddNamedImport(fset, f, "", path)
    }
    
    // AddNamedImport adds the import with the given name and path to the file f, if absent.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
Back to top