Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagingConnector ¶
type MessagingConnector interface {
Request(subj string, data []byte, timeout time.Duration) (*nats.Msg, error)
}
MessagingConnector makes requests to the message broker
type Prediction ¶
Prediction describes the response message format
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
The Service retrieves predictions for a given image from the prediction microservice
func NewService ¶
func NewService(messagingConnector MessagingConnector, messagingSubjectName string) *Service
NewService creates a new instance of the prediction service
func (*Service) GetPredictionForImageID ¶
func (s *Service) GetPredictionForImageID(id string) (*Prediction, error)
GetPredictionForImageID from prediction microservice via messaging
Click to show internal directories.
Click to hide internal directories.