Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for withHandler (0.13 sec)

  1. internal/grid/muxclient.go

    	if err != nil {
    		return err
    	}
    	if msg.Flags&FlagSubroute != 0 {
    		if m.subroute == nil {
    			return fmt.Errorf("internal error: subroute not defined on client")
    		}
    		hid := m.subroute.withHandler(msg.Handler)
    		before := len(dst)
    		dst = append(dst, hid[:]...)
    		if debugPrint {
    			fmt.Println("Added subroute", hid.String(), "to message", msg, "len", len(dst)-before)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. internal/grid/handlers.go

    func makeSubHandlerID(id HandlerID, subRoute string) subHandlerID {
    	b := subHandlerID(sha256.Sum256([]byte(subRoute)))
    	b[0] = byte(id)
    	b[1] = 0 // Reserved
    	return b
    }
    
    func (s subHandlerID) withHandler(id HandlerID) subHandlerID {
    	s[0] = byte(id)
    	s[1] = 0 // Reserved
    	return s
    }
    
    func (s *subHandlerID) String() string {
    	if s == nil {
    		return ""
    	}
    	return hex.EncodeToString(s[:])
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcweb/git.go

    package vcweb
    
    import (
    	"log"
    	"net/http"
    	"net/http/cgi"
    	"os/exec"
    	"runtime"
    	"slices"
    	"sync"
    )
    
    type gitHandler struct {
    	once       sync.Once
    	gitPath    string
    	gitPathErr error
    }
    
    func (h *gitHandler) Available() bool {
    	if runtime.GOOS == "plan9" {
    		// The Git command is usually not the real Git on Plan 9.
    		// See https://golang.org/issues/29640.
    		return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vcweb/vcweb.go

    		vcsHandlers: map[string]vcsHandler{
    			"auth":     new(authHandler),
    			"dir":      new(dirHandler),
    			"bzr":      new(bzrHandler),
    			"fossil":   new(fossilHandler),
    			"git":      new(gitHandler),
    			"hg":       new(hgHandler),
    			"insecure": new(insecureHandler),
    			"svn":      &svnHandler{svnRoot: workDir, logger: logger},
    		},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top