Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for LOCAL (0.31 sec)

  1. cmd/local-locker.go

    	}
    	return lockCopy
    }
    
    func (l *localLocker) Close() error {
    	return nil
    }
    
    // IsOnline - local locker is always online.
    func (l *localLocker) IsOnline() bool {
    	return true
    }
    
    // IsLocal - local locker returns true.
    func (l *localLocker) IsLocal() bool {
    	return true
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. cmd/local-locker_test.go

    ferhat elmas <******@****.***> 1677992255 +0100
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  3. cmd/local-locker_gen.go

    Krishnan Parthasarathi <******@****.***> 1711041695 -0700
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  4. cmd/local-locker_gen_test.go

    Klaus Post <******@****.***> 1708383286 -0800
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  5. internal/grid/connection.go

    */
    
    // shouldConnect returns a deterministic bool whether the local should initiate the connection.
    // It should be 50% chance of any host initiating the connection.
    func (c *Connection) shouldConnect() bool {
    	// The remote should have the opposite result.
    	h0 := xxh3.HashString(c.Local + c.Remote)
    	h1 := xxh3.HashString(c.Remote + c.Local)
    	if h0 == h1 {
    		return c.Local < c.Remote
    	}
    	return h0 < h1
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/filter.go

    			return err
    		}
    	case !f.Tag.IsEmpty():
    		if err := e.EncodeElement(f.Tag, xml.StartElement{Name: xml.Name{Local: "Tag"}}); err != nil {
    			return err
    		}
    	default:
    		// Always print Prefix field when both And & Tag are empty
    		if err := e.EncodeElement(f.Prefix, xml.StartElement{Name: xml.Name{Local: "Prefix"}}); err != nil {
    			return err
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. cmd/net.go

    	} else if addr1Local, err = isLocalHost(host1, port1, port1); err != nil {
    		// Host not empty, check if it is local
    		return false, err
    	}
    
    	if host2 == "" {
    		// If empty host means it is localhost
    		addr2Local = true
    	} else if addr2Local, err = isLocalHost(host2, port2, port2); err != nil {
    		// Host not empty, check if it is local
    		return false, err
    	}
    
    	// If both of addresses point to the same machine, check if
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. internal/grid/grid_test.go

    		r := RemoteErr(req.String)
    		return nil, &r
    	}
    	errFatal(h1.Register(local, handler1))
    	errFatal(h2.Register(local, handler2))
    
    	errFatal(h1.Register(remote, handler1))
    	errFatal(h2.Register(remote, handler2))
    
    	// local to remote connection
    	remoteConn := local.Connection(remoteHost)
    	const testPayload = "Hello Grid World!"
    
    	start := time.Now()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  9. cmd/site-replication.go

    // replication is enabled. It is responsible for the creation of the same bucket
    // on remote clusters, and creating replication rules on local and peer
    // clusters.
    func (c *SiteReplicationSys) MakeBucketHook(ctx context.Context, bucket string, opts MakeBucketOptions) error {
    	// At this point, the local bucket is created.
    
    	c.RLock()
    	defer c.RUnlock()
    	if !c.enabled {
    		return nil
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  10. internal/grid/manager.go

    		targets:     make(map[string]*Connection, len(o.Hosts)),
    		local:       o.Local,
    		authRequest: o.AuthRequest,
    	}
    	m.handlers.init()
    	if ctx == nil {
    		ctx = context.Background()
    	}
    	for _, host := range o.Hosts {
    		if host == o.Local {
    			if found {
    				return nil, fmt.Errorf("grid: local host found multiple times")
    			}
    			found = true
    			// No connection to local.
    			continue
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top