Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetRaw (0.04 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            StringWriter sw = new StringWriter();
            properties.save(sw);
            String msg = sw.toString();
            assertTrue(sw.toString().endsWith(RESULT3), msg);
            List<String> rawValue = properties.getRaw(KEY1);
            assertEquals(2, (Object) rawValue.size());
            assertEquals(KEY1A + " = " + VALUE1, rawValue.get(0));
            assertEquals(VALUE1, rawValue.get(1));
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. internal/store/queuestore.go

    	if err != nil {
    		return Key{}, err
    	}
    	key := Key{
    		Name:      uid.String(),
    		Extension: store.fileExt,
    	}
    	return key, store.writeBytes(key, b)
    }
    
    // GetRaw - gets an item from the store.
    func (store *QueueStore[I]) GetRaw(key Key) (raw []byte, err error) {
    	store.RLock()
    
    	defer func(store *QueueStore[I]) {
    		store.RUnlock()
    		if err != nil && !os.IsNotExist(err) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. internal/store/store.go

    }
    
    // Store - Used to persist items.
    type Store[I any] interface {
    	Put(item I) (Key, error)
    	PutMultiple(item []I) (Key, error)
    	Get(key Key) (I, error)
    	GetMultiple(key Key) ([]I, error)
    	GetRaw(key Key) ([]byte, error)
    	PutRaw(b []byte) (Key, error)
    	Len() int
    	List() []Key
    	Del(key Key) error
    	Open() error
    	Delete() error
    }
    
    // Key denotes the key present in the store.
    type Key struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            for (String key : properties.keySet()) {
                String v = this.get(key);
                List<String> comments = properties.getComments(key);
                List<String> value = properties.getRaw(key);
                if (v == null) {
                    this.put(key, comments, value);
                    modified = true;
                } else if (!v.equals(properties.get(key))) {
                    if (comments.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. internal/logger/target/http/http.go

    	return h, nil
    }
    
    // SendFromStore - reads the log from store and sends it to webhook.
    func (h *Target) SendFromStore(key store.Key) (err error) {
    	var eventData []byte
    	eventData, err = h.store.GetRaw(key)
    	if err != nil {
    		if os.IsNotExist(err) {
    			return nil
    		}
    		return err
    	}
    
    	count := 1
    	v := strings.Split(key.Name, ":")
    	if len(v) == 2 {
    		count, err = strconv.Atoi(v[0])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top