service

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationMapperService

type AnnotationMapperService struct {
	// contains filtered or unexported fields
}

func NewAnnotationMapperService

func NewAnnotationMapperService(whitelist *regexp.Regexp, messageProducer kafkaProducer, log *logger.UPPLogger) *AnnotationMapperService

func (*AnnotationMapperService) HandleMessage

func (mapper *AnnotationMapperService) HandleMessage(msg kafka.FTMessage)

type MappedAnnotations

type MappedAnnotations struct {
	UUID        string       `json:"uuid"`
	Annotations []annotation `json:"annotations"`
}

MappedAnnotations are submitted to the writer topic

type PacMetadataAnnotation

type PacMetadataAnnotation struct {
	Predicate string `json:"predicate"`
	ConceptId string `json:"id"`
}

type PacMetadataPublishEvent

type PacMetadataPublishEvent struct {
	UUID        string                  `json:"uuid"`
	Annotations []PacMetadataAnnotation `json:"annotations"`
}

MetadataPublishEvent models the events we process from the queue

Jump to

Keyboard shortcuts

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