-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from EURODEO/get_tsattr_combos_issue_64
Added GetTSAttrGroups method
- Loading branch information
Showing
6 changed files
with
531 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package dsimpl | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
|
||
"datastore/datastore" | ||
) | ||
|
||
func (svcInfo *ServiceInfo) GetTSAttrGroups( | ||
ctx context.Context, request *datastore.GetTSAGRequest) (*datastore.GetTSAGResponse, error) { | ||
|
||
// ensure that at least one attribute is specified | ||
if len(request.Attrs) == 0 { | ||
return nil, fmt.Errorf("no attributes specified") | ||
} | ||
|
||
response, err := svcInfo.Sbe.GetTSAttrGroups(request) | ||
if err != nil { | ||
return nil, fmt.Errorf("svcInfo.Sbe.GetTSAttrGroups() failed: %v", err) | ||
} | ||
|
||
return response, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.