dictyBase/modware-annotation

View on GitHub
internal/message/message.go

Summary

Maintainability
A
0 mins
Test Coverage
package message

import (
    "github.com/dictyBase/go-genproto/dictybaseapis/annotation"
)

// Publisher manages publishing of message.
type Publisher interface {
    // Publis publishes the annotation object using the given subject
    Publish(subject string, ann *annotation.TaggedAnnotation) error
    // Close closes the connection to the underlying messaging server
    Close() error
}