Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for firstLine (0.1 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          }
    
          client.newCall(request)
            .execute()
            .use {
              val firstLine =
                it.body.string()
                  .lines()
                  .first()
              if (this.launch != CommandLine) {
                println("${it.code} ${it.request.url.host} $firstLine")
              }
              Unit
            }
        } catch (e: IOException) {
          System.err.println(e)
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        }
    
        StackTraceException e = new StackTraceException("my message");
    
        String firstLine = quote(e.getClass().getName() + ": " + e.getMessage());
        String secondLine = "\\s*at " + ThrowablesTest.class.getName() + "\\..*";
        String moreLines = "(?:.*" + System.lineSeparator() + "?)*";
        String expected =
            firstLine + System.lineSeparator() + secondLine + System.lineSeparator() + moreLines;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/ThrowablesTest.java

        }
    
        StackTraceException e = new StackTraceException("my message");
    
        String firstLine = quote(e.getClass().getName() + ": " + e.getMessage());
        String secondLine = "\\s*at " + ThrowablesTest.class.getName() + "\\..*";
        String moreLines = "(?:.*" + System.lineSeparator() + "?)*";
        String expected =
            firstLine + System.lineSeparator() + secondLine + System.lineSeparator() + moreLines;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. internal/event/target/postgresql.go

    	initOnce once.Init
    
    	id         event.TargetID
    	args       PostgreSQLArgs
    	updateStmt *sql.Stmt
    	deleteStmt *sql.Stmt
    	insertStmt *sql.Stmt
    	db         *sql.DB
    	store      store.Store[event.Event]
    	firstPing  bool
    	connString string
    	loggerOnce logger.LogOnce
    	quitCh     chan struct{}
    }
    
    // ID - returns target ID.
    func (target *PostgreSQLTarget) ID() event.TargetID {
    	return target.id
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. internal/event/target/redis.go

    		if xnet.IsConnRefusedErr(pingErr) {
    			return store.ErrNotConnected
    		}
    		return pingErr
    	}
    
    	if !target.firstPing {
    		if err := target.args.validateFormat(conn); err != nil {
    			if xnet.IsConnRefusedErr(err) {
    				return store.ErrNotConnected
    			}
    			return err
    		}
    		target.firstPing = true
    	}
    
    	eventData, eErr := target.store.Get(key)
    	if eErr != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. internal/disk/stat_linux.go

    	"strconv"
    	"strings"
    	"syscall"
    
    	"github.com/prometheus/procfs/blockdevice"
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, firstTime bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. internal/event/target/mysql.go

    	initOnce once.Init
    
    	id         event.TargetID
    	args       MySQLArgs
    	updateStmt *sql.Stmt
    	deleteStmt *sql.Stmt
    	insertStmt *sql.Stmt
    	db         *sql.DB
    	store      store.Store[event.Event]
    	firstPing  bool
    	loggerOnce logger.LogOnce
    
    	quitCh chan struct{}
    }
    
    // ID - returns target ID.
    func (target *MySQLTarget) ID() event.TargetID {
    	return target.id
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. cmd/iam-object-store.go

    	return policyDocs, err
    }
    
    // Assumes cache is locked by caller.
    func (iamOS *IAMObjectStore) loadAllFromObjStore(ctx context.Context, cache *iamCache, firstTime bool) error {
    	bootstrapTraceMsgFirstTime := func(s string) {
    		if firstTime {
    			bootstrapTraceMsg(s)
    		}
    	}
    
    	if iamOS.objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	bootstrapTraceMsgFirstTime("loading all IAM items")
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  9. cmd/iam-store.go

    }
    
    // LoadIAMCache reads all IAM items and populates a new iamCache object and
    // replaces the in-memory cache object.
    func (store *IAMStoreSys) LoadIAMCache(ctx context.Context, firstTime bool) error {
    	bootstrapTraceMsgFirstTime := func(s string) {
    		if firstTime {
    			bootstrapTraceMsg(s)
    		}
    	}
    	bootstrapTraceMsgFirstTime("loading IAM data")
    
    	newCache := newIamCache()
    
    	loadedAt := time.Now()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  10. cmd/iam.go

    	defer sys.Unlock()
    	return sys.store != nil
    }
    
    // Load - loads all credentials, policies and policy mappings.
    func (sys *IAMSys) Load(ctx context.Context, firstTime bool) error {
    	loadStartTime := time.Now()
    	err := sys.store.LoadIAMCache(ctx, firstTime)
    	if err != nil {
    		atomic.AddUint64(&sys.TotalRefreshFailures, 1)
    		return err
    	}
    	loadDuration := time.Since(loadStartTime)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top