Documentation
¶
Index ¶
- Variables
- type AnnotationService
- func (s *AnnotationService) AddToAnnotationGroup(ctx context.Context, rta *annotation.AnnotationGroupId) (*annotation.TaggedAnnotationGroup, error)
- func (s *AnnotationService) CreateAnnotation(ctx context.Context, rta *annotation.NewTaggedAnnotation) (*annotation.TaggedAnnotation, error)
- func (s *AnnotationService) CreateAnnotationGroup(ctx context.Context, rta *annotation.AnnotationIdList) (*annotation.TaggedAnnotationGroup, error)
- func (s *AnnotationService) DeleteAnnotation(ctx context.Context, r *annotation.DeleteAnnotationRequest) (*empty.Empty, error)
- func (s *AnnotationService) DeleteAnnotationGroup(ctx context.Context, r *annotation.GroupEntryId) (*empty.Empty, error)
- func (srv *AnnotationService) GetAnnotation(ctx context.Context, req *annotation.AnnotationId) (*annotation.TaggedAnnotation, error)
- func (srv *AnnotationService) GetAnnotationGroup(ctx context.Context, rid *annotation.GroupEntryId) (*annotation.TaggedAnnotationGroup, error)
- func (srv *AnnotationService) GetAnnotationTag(ctx context.Context, rta *annotation.TagRequest) (*annotation.AnnotationTag, error)
- func (srv *AnnotationService) GetEntryAnnotation(ctx context.Context, rea *annotation.EntryAnnotationRequest) (*annotation.TaggedAnnotation, error)
- func (s *AnnotationService) GetGroupResourceName() string
- func (srv *AnnotationService) ListAnnotationGroups(ctx context.Context, rgp *annotation.ListGroupParameters) (*annotation.TaggedAnnotationGroupCollection, error)
- func (srv *AnnotationService) ListAnnotations(ctx context.Context, ral *annotation.ListParameters) (*annotation.TaggedAnnotationCollection, error)
- func (s *AnnotationService) OboJSONFileUpload(stream annotation.TaggedAnnotationService_OboJSONFileUploadServer) error
- func (s *AnnotationService) UpdateAnnotation(ctx context.Context, rta *annotation.TaggedAnnotationUpdate) (*annotation.TaggedAnnotation, error)
- type FeatureAnnotationService
- func (srv *FeatureAnnotationService) AddTag(ctx context.Context, req *feature.AddTagRequest) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) AddTags(ctx context.Context, req *feature.AddTagsRequest) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) CreateFeatureAnnotation(ctx context.Context, req *feature.NewFeatureAnnotation) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) DeleteFeatureAnnotation(ctx context.Context, req *feature.DeleteFeatureAnnotationRequest) (*emptypb.Empty, error)
- func (srv *FeatureAnnotationService) GetFeatureAnnotation(ctx context.Context, req *feature.FeatureAnnotationId) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) GetFeatureAnnotationByName(ctx context.Context, req *feature.FeatureName) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) ListFeatureAnnotationsByDOI(ctx context.Context, req *feature.DOI) (*feature.FeatureAnnotationCollection, error)
- func (srv *FeatureAnnotationService) ListFeatureAnnotationsByPubmedId(ctx context.Context, req *feature.PubmedId) (*feature.FeatureAnnotationCollection, error)
- func (srv *FeatureAnnotationService) RemoveTag(ctx context.Context, req *feature.RemoveTagRequest) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) RemoveTags(ctx context.Context, req *feature.RemoveTagsRequest) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) SetTags(ctx context.Context, req *feature.SetTagsRequest) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) UpdateFeatureAnnotation(ctx context.Context, req *feature.FeatureAnnotationUpdate) (*feature.FeatureAnnotation, error)
- func (srv *FeatureAnnotationService) UpdateTag(ctx context.Context, req *feature.UpdateTagRequest) (*feature.FeatureAnnotation, error)
- type FeatureParams
- type MockMessage
- type Params
Constants ¶
This section is empty.
Variables ¶
View Source
var LIMIT int64 = 10
Functions ¶
This section is empty.
Types ¶
type AnnotationService ¶
type AnnotationService struct {
*aphgrpc.Service
annotation.UnimplementedTaggedAnnotationServiceServer
// contains filtered or unexported fields
}
AnnotationService is the container for managing annotation service definition.
func NewAnnotationService ¶
func NewAnnotationService(srvP *Params) (*AnnotationService, error)
NewAnnotationService is the constructor for creating a new instance of AnnotationService.
func (*AnnotationService) AddToAnnotationGroup ¶
func (s *AnnotationService) AddToAnnotationGroup( ctx context.Context, rta *annotation.AnnotationGroupId, ) (*annotation.TaggedAnnotationGroup, error)
func (*AnnotationService) CreateAnnotation ¶
func (s *AnnotationService) CreateAnnotation( ctx context.Context, rta *annotation.NewTaggedAnnotation, ) (*annotation.TaggedAnnotation, error)
func (*AnnotationService) CreateAnnotationGroup ¶
func (s *AnnotationService) CreateAnnotationGroup( ctx context.Context, rta *annotation.AnnotationIdList, ) (*annotation.TaggedAnnotationGroup, error)
func (*AnnotationService) DeleteAnnotation ¶
func (s *AnnotationService) DeleteAnnotation(ctx context.Context, r *annotation.DeleteAnnotationRequest) (*empty.Empty, error)
func (*AnnotationService) DeleteAnnotationGroup ¶
func (s *AnnotationService) DeleteAnnotationGroup(ctx context.Context, r *annotation.GroupEntryId) (*empty.Empty, error)
func (*AnnotationService) GetAnnotation ¶
func (srv *AnnotationService) GetAnnotation( ctx context.Context, req *annotation.AnnotationId, ) (*annotation.TaggedAnnotation, error)
func (*AnnotationService) GetAnnotationGroup ¶
func (srv *AnnotationService) GetAnnotationGroup( ctx context.Context, rid *annotation.GroupEntryId, ) (*annotation.TaggedAnnotationGroup, error)
func (*AnnotationService) GetAnnotationTag ¶
func (srv *AnnotationService) GetAnnotationTag( ctx context.Context, rta *annotation.TagRequest, ) (*annotation.AnnotationTag, error)
func (*AnnotationService) GetEntryAnnotation ¶
func (srv *AnnotationService) GetEntryAnnotation( ctx context.Context, rea *annotation.EntryAnnotationRequest, ) (*annotation.TaggedAnnotation, error)
func (*AnnotationService) GetGroupResourceName ¶
func (s *AnnotationService) GetGroupResourceName() string
func (*AnnotationService) ListAnnotationGroups ¶
func (srv *AnnotationService) ListAnnotationGroups( ctx context.Context, rgp *annotation.ListGroupParameters, ) (*annotation.TaggedAnnotationGroupCollection, error)
func (*AnnotationService) ListAnnotations ¶
func (srv *AnnotationService) ListAnnotations( ctx context.Context, ral *annotation.ListParameters, ) (*annotation.TaggedAnnotationCollection, error)
func (*AnnotationService) OboJSONFileUpload ¶
func (s *AnnotationService) OboJSONFileUpload( stream annotation.TaggedAnnotationService_OboJSONFileUploadServer, ) error
OboJSONFileUpload uploads a obojson formatted file to the server.
func (*AnnotationService) UpdateAnnotation ¶
func (s *AnnotationService) UpdateAnnotation( ctx context.Context, rta *annotation.TaggedAnnotationUpdate, ) (*annotation.TaggedAnnotation, error)
type FeatureAnnotationService ¶
type FeatureAnnotationService struct {
*aphgrpc.Service
feature.UnimplementedFeatureAnnotationServiceServer
// contains filtered or unexported fields
}
func NewFeatureAnnotationService ¶
func NewFeatureAnnotationService( params *FeatureParams, ) (*FeatureAnnotationService, error)
func (*FeatureAnnotationService) AddTag ¶
func (srv *FeatureAnnotationService) AddTag( ctx context.Context, req *feature.AddTagRequest, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) AddTags ¶
func (srv *FeatureAnnotationService) AddTags( ctx context.Context, req *feature.AddTagsRequest, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) CreateFeatureAnnotation ¶
func (srv *FeatureAnnotationService) CreateFeatureAnnotation( ctx context.Context, req *feature.NewFeatureAnnotation, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) DeleteFeatureAnnotation ¶
func (srv *FeatureAnnotationService) DeleteFeatureAnnotation( ctx context.Context, req *feature.DeleteFeatureAnnotationRequest, ) (*emptypb.Empty, error)
func (*FeatureAnnotationService) GetFeatureAnnotation ¶
func (srv *FeatureAnnotationService) GetFeatureAnnotation( ctx context.Context, req *feature.FeatureAnnotationId, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) GetFeatureAnnotationByName ¶
func (srv *FeatureAnnotationService) GetFeatureAnnotationByName( ctx context.Context, req *feature.FeatureName, ) (*feature.FeatureAnnotation, error)
GetFeatureAnnotationByName retrieves a feature annotation by its name.
func (*FeatureAnnotationService) ListFeatureAnnotationsByDOI ¶
func (srv *FeatureAnnotationService) ListFeatureAnnotationsByDOI( ctx context.Context, req *feature.DOI, ) (*feature.FeatureAnnotationCollection, error)
func (*FeatureAnnotationService) ListFeatureAnnotationsByPubmedId ¶
func (srv *FeatureAnnotationService) ListFeatureAnnotationsByPubmedId( ctx context.Context, req *feature.PubmedId, ) (*feature.FeatureAnnotationCollection, error)
func (*FeatureAnnotationService) RemoveTag ¶
func (srv *FeatureAnnotationService) RemoveTag( ctx context.Context, req *feature.RemoveTagRequest, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) RemoveTags ¶
func (srv *FeatureAnnotationService) RemoveTags( ctx context.Context, req *feature.RemoveTagsRequest, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) SetTags ¶
func (srv *FeatureAnnotationService) SetTags( ctx context.Context, req *feature.SetTagsRequest, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) UpdateFeatureAnnotation ¶
func (srv *FeatureAnnotationService) UpdateFeatureAnnotation( ctx context.Context, req *feature.FeatureAnnotationUpdate, ) (*feature.FeatureAnnotation, error)
func (*FeatureAnnotationService) UpdateTag ¶
func (srv *FeatureAnnotationService) UpdateTag( ctx context.Context, req *feature.UpdateTagRequest, ) (*feature.FeatureAnnotation, error)
type FeatureParams ¶
type FeatureParams struct {
Repository repository.FeatureAnnotationRepository `validate:"required"`
Publisher message.FeatureAnnotationPublisher `validate:"required"`
Options []aphgrpc.Option
}
type MockMessage ¶
type MockMessage struct{}
func (*MockMessage) Close ¶
func (msn *MockMessage) Close() error
func (*MockMessage) Publish ¶
func (msn *MockMessage) Publish( subject string, feat *feature.FeatureAnnotation, ) error
type Params ¶
type Params struct {
Repository repository.TaggedAnnotationRepository `validate:"required"`
Publisher message.Publisher `validate:"required"`
Options []aphgrpc.Option `validate:"required"`
Group string `validate:"required"`
}
ServiceParams are the attributes that are required for creating new AnnotationService.
Click to show internal directories.
Click to hide internal directories.