MCPcopy Create free account
hub / github.com/cloudwan/gohan / request

Method request

cli/client/commands.go:43–51  ·  view source on GitHub ↗
(method, url string, opts *gophercloud.RequestOpts)

Source from the content-addressed store, hash-verified

41}
42
43func (gohanClientCLI *GohanClientCLI) request(method, url string, opts *gophercloud.RequestOpts) (interface{}, error) {
44 if opts == nil {
45 opts = &gophercloud.RequestOpts{
46 JSONBody: map[string]interface{}{},
47 }
48 }
49 gohanClientCLI.logRequest(method, url, gohanClientCLI.provider.TokenID, opts.JSONBody.(map[string]interface{}))
50 return gohanClientCLI.handleResponse(gohanClientCLI.provider.Request(method, url, opts))
51}
52
53func (gohanClientCLI *GohanClientCLI) getCommands() []gohanCommand {
54 commands := []gohanCommand{}

Callers 6

getListCommandMethod · 0.95
getGetCommandMethod · 0.95
getPostCommandMethod · 0.95
getPutCommandMethod · 0.95
getDeleteCommandMethod · 0.95
createActionFuncMethod · 0.95

Calls 3

logRequestMethod · 0.95
handleResponseMethod · 0.95
RequestMethod · 0.65

Tested by

no test coverage detected