service

package
v0.0.0-...-1e92df4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: BSD-2-Clause Imports: 33 Imported by: 0

Documentation

Index

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 (*AnnotationService) CreateAnnotation

func (*AnnotationService) CreateAnnotationGroup

func (*AnnotationService) DeleteAnnotation

func (*AnnotationService) DeleteAnnotationGroup

func (s *AnnotationService) DeleteAnnotationGroup(ctx context.Context, r *annotation.GroupEntryId) (*empty.Empty, error)

func (*AnnotationService) GetAnnotation

func (*AnnotationService) GetAnnotationGroup

func (*AnnotationService) GetAnnotationTag

func (srv *AnnotationService) GetAnnotationTag(
	ctx context.Context, rta *annotation.TagRequest,
) (*annotation.AnnotationTag, error)

func (*AnnotationService) GetEntryAnnotation

func (*AnnotationService) GetGroupResourceName

func (s *AnnotationService) GetGroupResourceName() string

func (*AnnotationService) ListAnnotationGroups

func (*AnnotationService) ListAnnotations

func (*AnnotationService) OboJSONFileUpload

OboJSONFileUpload uploads a obojson formatted file to the server.

func (*AnnotationService) UpdateAnnotation

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 (*FeatureAnnotationService) AddTags

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 (*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 (*FeatureAnnotationService) RemoveTags

func (*FeatureAnnotationService) SetTags

func (*FeatureAnnotationService) UpdateFeatureAnnotation

func (*FeatureAnnotationService) UpdateTag

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL