Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for encloses (0.15 sec)

  1. internal/event/target/nsq.go

    		}
    		return eErr
    	}
    
    	if err := target.send(eventData); err != nil {
    		return err
    	}
    
    	// Delete the event from store.
    	return target.store.Del(key.Name)
    }
    
    // Close - closes underneath connections to NSQD server.
    func (target *NSQTarget) Close() (err error) {
    	close(target.quitCh)
    	if target.producer != nil {
    		// this blocks until complete:
    		target.producer.Stop()
    	}
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  2. internal/s3select/csv/reader.go

    	if !ok {
    		dstRec = &Record{}
    	}
    	dstRec.columnNames = r.columnNames
    	dstRec.csvRecord = csvRecord
    	dstRec.nameIndexMap = r.nameIndexMap
    
    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *Reader) Close() error {
    	if r.close != nil {
    		close(r.close)
    		r.readerWg.Wait()
    		r.close = nil
    	}
    	r.recordsRead = len(r.current)
    	if r.err == nil {
    		r.err = io.EOF
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. cmd/admin-heal-ops.go

    		h.currentStatus.Summary = healFinishedStatus
    		h.mutex.Unlock()
    
    		// drain traverse channel so the traversal
    		// go-routine does not leak.
    		go func() {
    			// Eventually the traversal go-routine closes
    			// the channel and returns, so this go-routine
    			// itself will not leak.
    			<-h.traverseAndHealDoneCh
    		}()
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  4. internal/grid/handlers.go

    	})
    }
    
    // TypedStream is a stream with specific types.
    type TypedStream[Req, Resp RoundTripper] struct {
    	// responses from the remote server.
    	// Channel will be closed after error or when remote closes.
    	// responses *must* be read to either an error is returned or the channel is closed.
    	responses *Stream
    	newResp   func() Resp
    
    	// Requests sent to the server.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  5. internal/event/targetid.go

    func (tid TargetID) String() string {
    	return tid.ID + ":" + tid.Name
    }
    
    // ToARN - converts to ARN.
    func (tid TargetID) ToARN(region string) ARN {
    	return ARN{TargetID: tid, region: region}
    }
    
    // MarshalJSON - encodes to JSON data.
    func (tid TargetID) MarshalJSON() ([]byte, error) {
    	return json.Marshal(tid.String())
    }
    
    // UnmarshalJSON - decodes JSON data.
    func (tid *TargetID) UnmarshalJSON(data []byte) error {
    	var s string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  6. cmd/erasure-encode.go

    	return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers))
    }
    
    // Encode reads from the reader, erasure-encodes the data and writes to the writers.
    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &parallelWriter{
    		writers:     writers,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. internal/bucket/object/lock/lock.go

    	retDate, err := amztime.ISO8601Parse(dateStr)
    	if err != nil {
    		return ErrInvalidRetentionDate
    	}
    
    	*rDate = RetentionDate{retDate}
    	return nil
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (rDate RetentionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if rDate.IsZero() {
    		return nil
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  8. internal/s3select/simdj/reader.go

    			return nil, errJSONParsingError(*r.err)
    		}
    		return nil, io.EOF
    	}
    	dstRec, ok := dst.(*Record)
    	if !ok {
    		dstRec = &Record{}
    	}
    	dstRec.object = v
    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *Reader) Close() error {
    	// Close the input.
    	// Potentially racy if the stream decoder is still reading.
    	if r.readCloser != nil {
    		r.readCloser.Close()
    	}
    	if r.exitReader != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 30 17:02:22 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  9. internal/kms/context.go

    			switch b {
    			case '\\', '"':
    				dst.WriteByte(b)
    			case '\n':
    				dst.WriteByte('n')
    			case '\r':
    				dst.WriteByte('r')
    			case '\t':
    				dst.WriteByte('t')
    			default:
    				// This encodes bytes < 0x20 except for \t, \n and \r.
    				// If escapeHTML is set, it also escapes <, >, and &
    				// because they can lead to security holes when
    				// user-controlled strings are rendered into JSON
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Viewed (0)
  10. internal/s3select/sql/parser.go

    	Not   bool     `parser:" @\"NOT\"? "`
    	Start *Operand `parser:" \"BETWEEN\" @@ "`
    	End   *Operand `parser:" \"AND\" @@ "`
    }
    
    // In represents the RHS of an IN expression. The RHS can be a list-literal
    // (i.e. enclosed in parentheses like `IN (1,2,4)`) or it could be a JSON path
    // expression (as in `8.5 IN s.nested[*][*]`). Specifically, it cannot be an
    // `Expression` as an expression can never evaluate to a list.
    type In struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top