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

Method Path

schema/resource.go:64–68  ·  view source on GitHub ↗

Path generate path for this resource

()

Source from the content-addressed store, hash-verified

62
63//Path generate path for this resource
64func (resource *Resource) Path() string {
65 s := resource.Schema()
66 key := s.URL + "/" + resource.ID()
67 return key
68}
69
70//Data gets data from resource
71func (resource *Resource) Data() map[string]interface{} {

Callers 4

logEventMethod · 0.80
db_test.goFile · 0.80

Calls 2

SchemaMethod · 0.95
IDMethod · 0.95

Tested by

no test coverage detected