Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _state_name (0.27 sec)

  1. internal/grid/grid_test.go

    	_ = x[StateConnectionError-3]
    	_ = x[StateShutdown-4]
    }
    
    const stateName = "UnconnectedConnectingConnectedConnectionErrorShutdown"
    
    var stateIndex = [...]uint8{0, 11, 21, 30, 45, 53}
    
    func (i State) String() string {
    	if i >= State(len(stateIndex)-1) {
    		return "State(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return stateName[stateIndex[i]:stateIndex[i+1]]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. src/net/http/server.go

    	// transition to StateClosed.
    	StateClosed
    )
    
    var stateName = map[ConnState]string{
    	StateNew:      "new",
    	StateActive:   "active",
    	StateIdle:     "idle",
    	StateHijacked: "hijacked",
    	StateClosed:   "closed",
    }
    
    func (c ConnState) String() string {
    	return stateName[c]
    }
    
    // serverHandler delegates to either the server's Handler or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top