- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 74 for Addr (0.05 sec)
-
internal/handlers/proxy.go
raddr, _, _ := net.SplitHostPort(addr) if raddr == "" { return addr } return raddr } // GetSourceIP retrieves the IP from the request headers // and falls back to r.RemoteAddr when necessary. func GetSourceIP(r *http.Request) string { addr := GetSourceIPRaw(r) if strings.ContainsRune(addr, ':') { return "[" + addr + "]" } return addr
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Dec 22 00:56:55 UTC 2023 - 5.1K bytes - Viewed (0) -
schema/utils.go
case reflect.Struct: reflectResults = reflect.Append(reflectResults, result.Addr()) case reflect.Slice, reflect.Array: for i := 0; i < result.Len(); i++ { if elem := result.Index(i); elem.Kind() == reflect.Ptr { reflectResults = reflect.Append(reflectResults, elem) } else { reflectResults = reflect.Append(reflectResults, elem.Addr()) } } } } }
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Sat Aug 19 13:35:14 UTC 2023 - 5.5K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/mips64.s
// } MOVB R8, R9 // 00084e0000094e03 MOVBU R12, R17 // 319100ff // LMOVV addr ',' rreg // { // outcode(int($1), &$2, 0, &$4); // } MOVV foo<>+3(SB), R2 MOVV (R5), R18 // dcb20000 MOVV 8(R16), R4 // de040008 MOVV -32(R14), R1 // ddc1ffe0 LLV (R1), R2 // d0220000 // LMOVW addr ',' rreg // { // outcode(int($1), &$2, 0, &$4); // } MOVW foo<>+3(SB), R2
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Tue Aug 08 12:17:12 UTC 2023 - 12.4K bytes - Viewed (0) -
internal/http/listener_test.go
continue nextTest } t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err) } } addr := listener.Addr() if addr.String() != testCase.expectedAddr { t.Fatalf("Test %d: addr: expected = %v, got = %v", i+1, testCase.expectedAddr, addr) } listener.Close() } } func TestHTTPListenerAddrs(t *testing.T) { if runtime.GOOS == "windows" { t.Skip()
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Jun 10 17:41:02 UTC 2024 - 11.8K bytes - Viewed (0) -
internal/http/dial_others.go
func NewInternodeDialContext(dialTimeout time.Duration, _ TCPOptions) DialContext { return func(ctx context.Context, network, addr string) (net.Conn, error) { dialer := &net.Dialer{ Timeout: dialTimeout, } return dialer.DialContext(ctx, network, addr) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Apr 24 04:08:47 UTC 2024 - 1.6K bytes - Viewed (0) -
api/next/62384.txt
pkg crypto/x509, method (OID) AppendText([]uint8) ([]uint8, error) #62384 pkg net, method (IP) AppendText([]uint8) ([]uint8, error) #62384 pkg net/netip, method (Addr) AppendBinary([]uint8) ([]uint8, error) #62384 pkg net/netip, method (Addr) AppendText([]uint8) ([]uint8, error) #62384 pkg net/netip, method (AddrPort) AppendBinary([]uint8) ([]uint8, error) #62384
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Mon Sep 23 18:10:51 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/addr2line/addr2line_test.go
if err := scanner.Err(); err != nil { t.Fatalf("error reading symbols: %v", err) } return syms } func runAddr2Line(t *testing.T, dbgExePath, addr string) (funcname, path, lineno string) { cmd := testenv.Command(t, testenv.Executable(t), dbgExePath) cmd.Stdin = strings.NewReader(addr) out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("go tool addr2line %v: %v\n%s", os.Args[0], err, string(out)) }
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Fri Sep 06 13:23:48 UTC 2024 - 3.2K bytes - Viewed (0) -
internal/event/target/webhook.go
cancelCh: ctx.Done(), } // Calculate the webhook addr with the port number format target.addr = args.Endpoint.Host if _, _, err := net.SplitHostPort(args.Endpoint.Host); err != nil && strings.Contains(err.Error(), "missing port in address") { switch strings.ToLower(args.Endpoint.Scheme) { case "http": target.addr += ":80" case "https": target.addr += ":443" default:
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.8K bytes - Viewed (0) -
internal/rest/rpc-stats.go
GotFirstResponseByte: func() { atomic.AddUint64(&globalStats.tcpTimeForFirstByteTotalDur, uint64(time.Since(start))) }, ConnectStart: func(network, addr string) { atomic.StoreInt64(&dialStart, time.Now().UnixNano()) }, ConnectDone: func(network, addr string, err error) { if err == nil { atomic.StoreInt64(&dialEnd, time.Now().UnixNano()) } }, }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Aug 13 18:21:34 UTC 2024 - 2.6K bytes - Viewed (0) -
association.go
case reflect.Slice, reflect.Array: for i := 0; i < rv.Len(); i++ { appendToFieldValues(reflect.Indirect(rv.Index(i)).Addr()) } case reflect.Struct: if !rv.CanAddr() { association.Error = ErrInvalidValue return } appendToFieldValues(rv.Addr()) } if association.Error == nil {
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 21.5K bytes - Viewed (0)