updated docs

This commit is contained in:
Radu Ioan Fericean
2013-06-18 12:28:44 +03:00
parent 61ec52c951
commit a2cae467fe
2 changed files with 4 additions and 3 deletions

View File

@@ -50,8 +50,8 @@ type AttrDestination struct {
Prefixes []string
}
func (self *Apier) GetDestination(tag string, reply *AttrDestination) error {
if dst, err := self.Getter.GetDestination(tag); err != nil {
func (self *Apier) GetDestination(attr *AttrDestination, reply *AttrDestination) error {
if dst, err := self.Getter.GetDestination(attr.Id); err != nil {
return errors.New(utils.ERR_NOT_FOUND)
} else {
reply.Id = dst.Id

View File

@@ -314,9 +314,10 @@ Gets the destinations for the specified tag.
Prefixes []string
}
Only the Id filed must be filled for get operation.
Example
GetDestination(tag string, reply \*AttrDestination)
GetDestination(attr \*AttrDestination, reply \*AttrDestination)
SetDestination
++++++++++++++