Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addToken (0.06 sec)

  1. internal/grid/msg.go

    type sender interface {
    	msgp.MarshalSizer
    	Op() Op
    }
    
    type connectReq struct {
    	ID    [16]byte
    	Host  string
    	Time  time.Time
    	Token string
    }
    
    // addToken will add the token to the connect request.
    func (c *connectReq) addToken(fn AuthFn) {
    	c.Token = fn()
    }
    
    func (connectReq) Op() Op {
    	return OpConnect
    }
    
    type connectResp struct {
    	ID             [16]byte
    	Accepted       bool
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top