func repoToPBData(repo RepoProps) ([]byte, error) {

    data, err := repo.Marshal()
    if err != nil {
        return nil, err
    }

    pbrepo := new(pb.IndexNode)
    typ := pb.IndexNode_Repo
    pbrepo.Type = typ
    pbrepo.Data = data

    data, err = proto.Marshal(pbrepo)

    return data, nil
}
// repoToPBData creates a protobuf encoded RepoProps message with the given.
repoToPBData creates a protobuf encoded RepoProps message with the given.
// repoToPBData creates a protobuf encoded RepoProps message with the given .
func repoToPBData(repo RepoProps) ([]byte, error) {
    data, err := repo.Marshal()
    if err != nil {
        return nil, err
    }
    pbrepo := new(pb.IndexNode)
    typ := pb.IndexNode_Repo
    pbrepo.Type = typ
    pbrepo.Data = data
    data, err = proto.Marshal(pbrepo)
    return data, nil
}
func repoToPBData ( repo RepoProps ) ( [ ] byte , error ) { data , err := repo . Marshal ( ) if err != nil { return nil , err } pbrepo := new ( pb . IndexNode ) typ := pb . IndexNode_Repo pbrepo . Type = typ pbrepo . Data = data data , err = proto . Marshal ( pbrepo ) return data , nil }
repoToPBData creates a protobuf encoded RepoProps message with the given.
repoToPBData creates a protobuf encoded RepoProps message with the given .