service

package
v0.0.0-...-88b445c Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 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.

type Validatable

type Validatable interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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