Skip to content

Commit 7ae2cff

Browse files
committed
add request API key req/rep
1 parent 370aa1b commit 7ae2cff

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎protocol/transfer.go‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,22 @@ type Team struct {
132132

133133
type ListTeamsResponse struct {
134134
Response
135-
Teams []Team `cbor:"5,keyasint,omitempty"`
135+
Teams []Team `cbor:"5,keyasint,omitempty"`
136136
ManagementURL string `cbor:"6,keyasint,omitempty"`
137137
}
138138

139+
type RequestKeyRequest struct {
140+
Name string `cbor:"1,keyasint,omitempty"`
141+
}
142+
143+
type RequestKeyResponse struct {
144+
Response
145+
BrowserURL string `cbor:"5,keyasint,omitempty"`
146+
PollURL string `cbor:"6,keyasint,omitempty"`
147+
Secret string `cbor:"7,keyasint,omitempty"`
148+
RequestID string `cbor:"8,keyasint,omitempty"`
149+
}
150+
139151
// encodeRequest encodes a request to CBOR and compresses it with zstd
140152
func (c *Client) encodeRequest(req interface{}) ([]byte, error) {
141153
var b bytes.Buffer

0 commit comments

Comments
 (0)