Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for callback (0.17 sec)

  1. src/cmd/cgo/internal/test/callback.go

    	// rewriting the C code.
    	C.callback(unsafe.Pointer(&i))
    
    	callbackMutex.Lock()
    	delete(callbackFuncs, i)
    	callbackMutex.Unlock()
    }
    
    //export goCallback
    func goCallback(p unsafe.Pointer) {
    	i := *(*int)(p)
    
    	callbackMutex.Lock()
    	f := callbackFuncs[i]
    	callbackMutex.Unlock()
    
    	if f == nil {
    		panic("missing callback function")
    	}
    	f()
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/callback_windows.go

    	}
    	// Only frames in the test package are checked.
    	want := []string{
    		"test._Cfunc_backtrace",
    		"test.testCallbackCallersSEH.func1.1",
    		"test.testCallbackCallersSEH.func1",
    		"test.goCallback",
    		"test._Cfunc_callback",
    		"test.nestedCall.func1",
    		"test.nestedCall",
    		"test.testCallbackCallersSEH",
    		"test.TestCallbackCallersSEH",
    	}
    	pc := make([]uintptr, 100)
    	n := 0
    	nestedCall(func() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  3. callbacks.go

    	var callbacks []*callback
    	removedMap := map[string]bool{}
    	for _, callback := range p.callbacks {
    		if callback.match == nil || callback.match(p.db) {
    			callbacks = append(callbacks, callback)
    		}
    		if callback.remove {
    			removedMap[callback.name] = true
    		}
    	}
    
    	if len(removedMap) > 0 {
    		callbacks = removeCallbacks(callbacks, removedMap)
    	}
    	p.callbacks = callbacks
    
    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)
  4. tests/callbacks_test.go

    		},
    		{
    			callbacks: []callback{{h: c1}, {h: c2}, {h: c3}, {h: c4}, {h: c5, before: "c4"}},
    			results:   []string{"c1", "c2", "c3", "c5", "c4"},
    		},
    		{
    			callbacks: []callback{{h: c1}, {h: c2}, {h: c3}, {h: c4, after: "c5"}, {h: c5}},
    			results:   []string{"c1", "c2", "c3", "c5", "c4"},
    		},
    		{
    			callbacks: []callback{{h: c1}, {h: c2}, {h: c3}, {h: c4, after: "c5"}, {h: c5, before: "c4"}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. docs/sts/web-identity.go

    		ClientID:     clientID,
    		ClientSecret: clientSec,
    		Endpoint: oauth2.Endpoint{
    			AuthURL:  ddoc.AuthEndpoint,
    			TokenURL: ddoc.TokenEndpoint,
    		},
    		RedirectURL: fmt.Sprintf("http://10.0.0.67:%d/oauth2/callback", port),
    		Scopes:      scopes,
    	}
    
    	state := randomState()
    
    	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
    		log.Printf("%s %s", r.Method, r.RequestURI)
    		if r.RequestURI != "/" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  6. docs/site-replication/gen-oidc-sts-cred.go

    	}
    
    	appParams := cmd.OpenIDClientAppParams{
    		ClientID:     "minio-client-app",
    		ClientSecret: "minio-client-app-secret",
    		ProviderURL:  "http://127.0.0.1:5556/dex",
    		RedirectURL:  "http://127.0.0.1:10000/oauth_callback",
    	}
    
    	oidcToken, err := cmd.MockOpenIDTestUserInteraction(ctx, appParams, "******@****.***", "dillon")
    	if err != nil {
    		log.Fatalf("Failed to generate OIDC token: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  7. internal/grid/stream.go

    	select {
    	case s.Requests <- b:
    		return nil
    	case <-s.ctx.Done():
    		return context.Cause(s.ctx)
    	}
    }
    
    // Results returns the results from the remote server one by one.
    // If any error is returned by the callback, the stream will be canceled.
    // If the context is canceled, the stream will be canceled.
    func (s *Stream) Results(next func(b []byte) error) (err error) {
    	done := false
    	defer func() {
    		if s.cancel != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 18:05:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. internal/config/identity/openid/help.go

    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         RedirectURI,
    			Description: `[DEPRECATED use env 'MINIO_BROWSER_REDIRECT_URL'] Configure custom redirect_uri for OpenID login flow callback` + defaultHelpPostfix(RedirectURI),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         config.Comment,
    			Description: config.DefaultComment,
    			Optional:    true,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  9. callbacks/callbacks.go

    	updateCallback.Match(enableTransaction).Register("gorm:commit_or_rollback_transaction", CommitOrRollbackTransaction)
    	updateCallback.Clauses = config.UpdateClauses
    
    	rowCallback := db.Callback().Row()
    	rowCallback.Register("gorm:row", RowQuery)
    	rowCallback.Clauses = config.QueryClauses
    
    	rawCallback := db.Callback().Raw()
    	rawCallback.Register("gorm:raw", RawExec)
    	rawCallback.Clauses = config.QueryClauses
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Oct 27 23:56:55 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  10. cmd/common-main.go

    	pcfgs := globalIAMSys.OpenIDConfig.ProviderCfgs
    	m := make(map[string]consoleoauth2.ProviderConfig, len(pcfgs))
    	for name, cfg := range pcfgs {
    		callback := getConsoleEndpoints()[0] + "/oauth_callback"
    		if cfg.RedirectURI != "" {
    			callback = cfg.RedirectURI
    		}
    		m[name] = consoleoauth2.ProviderConfig{
    			URL:                     cfg.URL.String(),
    			DisplayName:             cfg.DisplayName,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
Back to top