github.com/metacurrency/holochain@v0.1.0-alpha-26.0.20200915073418-5c83169c9b5b/action_property.go (about) 1 package holochain 2 3 //------------------------------------------------------------ 4 // Property 5 6 type APIFnProperty struct { 7 prop string 8 } 9 10 func (a *APIFnProperty) Name() string { 11 return "property" 12 } 13 14 func (a *APIFnProperty) Args() []Arg { 15 return []Arg{{Name: "name", Type: StringArg}} 16 } 17 18 func (a *APIFnProperty) Call(h *Holochain) (response interface{}, err error) { 19 response, err = h.GetProperty(a.prop) 20 return 21 }