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

Method getSchemaByID

cli/client/client.go:289–296  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

287}
288
289func (gohanClientCLI *GohanClientCLI) getSchemaByID(id string) (*schema.Schema, error) {
290 for _, s := range gohanClientCLI.schemas {
291 if s.ID == id {
292 return s, nil
293 }
294 }
295 return nil, fmt.Errorf("Schema with ID '%s' not found", id)
296}
297
298func (gohanClientCLI *GohanClientCLI) logRequest(method, url, tokenID string, args map[string]interface{}) {
299 log.Notice("Sent request: %s %s", method, url)

Callers 1

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected