Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 727 for bool (0.28 sec)

  1. callbacks.go

    	db        *DB
    	Clauses   []string
    	fns       []func(*DB)
    	callbacks []*callback
    }
    
    type callback struct {
    	name      string
    	before    string
    	after     string
    	remove    bool
    	replace   bool
    	match     func(*DB) bool
    	handler   func(*DB)
    	processor *processor
    }
    
    func (cs *callbacks) Create() *processor {
    	return cs.processors["create"]
    }
    
    func (cs *callbacks) Query() *processor {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 8.6K bytes
    - Viewed (1)
  2. internal/dsync/dsync-server_test.go

    	lockMap map[string]int64
    
    	// Refresh returns lock not found if set to true
    	lockNotFound bool
    
    	// Set to true if you want peers servers to do not respond
    	responseDelay int64
    }
    
    func (l *lockServer) setRefreshReply(refreshed bool) {
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    	l.lockNotFound = !refreshed
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  3. internal/event/target/nsq.go

    	EnvNSQQueueLimit    = "MINIO_NOTIFY_NSQ_QUEUE_LIMIT"
    )
    
    // NSQArgs - NSQ target arguments.
    type NSQArgs struct {
    	Enable      bool      `json:"enable"`
    	NSQDAddress xnet.Host `json:"nsqdAddress"`
    	Topic       string    `json:"topic"`
    	TLS         struct {
    		Enable     bool `json:"enable"`
    		SkipVerify bool `json:"skipVerify"`
    	} `json:"tls"`
    	QueueDir   string `json:"queueDir"`
    	QueueLimit uint64 `json:"queueLimit"`
    }
    
    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)
  4. internal/event/targetlist_test.go

    import (
    	"context"
    	"crypto/rand"
    	"errors"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/minio/minio/internal/store"
    )
    
    type ExampleTarget struct {
    	id       TargetID
    	sendErr  bool
    	closeErr bool
    }
    
    func (target ExampleTarget) ID() TargetID {
    	return target.id
    }
    
    // Save - Sends event directly without persisting.
    func (target ExampleTarget) Save(eventData Event) error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. internal/s3select/csv/args.go

    	QuoteEscapeCharacter       string `xml:"QuoteEscapeCharacter"`
    	CommentCharacter           string `xml:"Comments"`
    	AllowQuotedRecordDelimiter bool   `xml:"AllowQuotedRecordDelimiter"`
    	unmarshaled                bool
    }
    
    // IsEmpty - returns whether reader args is empty or not.
    func (args *ReaderArgs) IsEmpty() bool {
    	return !args.unmarshaled
    }
    
    // UnmarshalXML - decodes XML data.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  6. internal/auth/credentials_test.go

    package auth
    
    import (
    	"encoding/json"
    	"testing"
    	"time"
    )
    
    func TestExpToInt64(t *testing.T) {
    	testCases := []struct {
    		exp             interface{}
    		expectedFailure bool
    	}{
    		{"", true},
    		{"-1", true},
    		{"1574812326", false},
    		{1574812326, false},
    		{int64(1574812326), false},
    		{int(1574812326), false},
    		{uint(1574812326), false},
    		{uint64(1574812326), false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  7. docs_src/openapi_callbacks/tutorial001.py

    class Invoice(BaseModel):
        id: str
        title: Union[str, None] = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    @invoices_callback_router.post(
        "{$callback_url}/invoices/{$request.body.id}", response_model=InvoiceEventReceived
    )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  8. docs/debugging/s3-check-md5/main.go

    )
    
    var (
    	endpoint, accessKey, secretKey string
    	minModTimeStr                  string
    	bucket, prefix                 string
    	debug                          bool
    	versions                       bool
    	insecure                       bool
    )
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    func main() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/arch/mips.go

    )
    
    func jumpMIPS(word string) bool {
    	switch word {
    	case "BEQ", "BFPF", "BFPT", "BGEZ", "BGEZAL", "BGTZ", "BLEZ", "BLTZ", "BLTZAL", "BNE", "JMP", "JAL", "CALL":
    		return true
    	}
    	return false
    }
    
    // IsMIPSCMP reports whether the op (as defined by an mips.A* constant) is
    // one of the CMP instructions that require special handling.
    func IsMIPSCMP(op obj.As) bool {
    	switch op {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 04 19:06:44 GMT 2020
    - 1.7K bytes
    - Viewed (0)
  10. docs/debugging/s3-verify/main.go

    	targetBucket, targetPrefix                       string
    	minimumObjectAge                                 string
    	debug                                            bool
    	insecure                                         bool
    )
    
    func buildS3Client(endpoint, accessKey, secretKey string, insecure bool) (*minio.Client, error) {
    	u, err := url.Parse(endpoint)
    	if err != nil {
    		return nil, err
    	}
    
    	secure := strings.EqualFold(u.Scheme, "https")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
Back to top