( ctx context.Context, workspaceRef string, channel string, threadID string, request PromoteNetworkThreadTaskRequest, )
| 2219 | } |
| 2220 | |
| 2221 | func (c *unixSocketClient) PromoteNetworkThreadTask( |
| 2222 | ctx context.Context, |
| 2223 | workspaceRef string, |
| 2224 | channel string, |
| 2225 | threadID string, |
| 2226 | request PromoteNetworkThreadTaskRequest, |
| 2227 | ) (PromoteNetworkThreadTaskRecord, error) { |
| 2228 | path, err := networkThreadPath(workspaceRef, channel, threadID) |
| 2229 | if err != nil { |
| 2230 | return PromoteNetworkThreadTaskRecord{}, err |
| 2231 | } |
| 2232 | var response contract.PromoteNetworkThreadTaskResponse |
| 2233 | if err := c.doJSON(ctx, http.MethodPost, path+"/promote-task", nil, request, &response); err != nil { |
| 2234 | return PromoteNetworkThreadTaskRecord{}, err |
| 2235 | } |
| 2236 | return response, nil |
| 2237 | } |
| 2238 | |
| 2239 | func (c *unixSocketClient) ListExtensions(ctx context.Context) ([]ExtensionRecord, error) { |
| 2240 | var response struct { |
nothing calls this directly
no test coverage detected