Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileSpecLabels ¶
func CompileSpecLabels(resource models.JobSpec) (labels []models.JobMetadataLabelItem)
Types ¶
type EventPublish ¶ added in v0.0.3
type EventPublish struct {
SpecCount int
}
EventPublish represents a specification being published to meta event stream
func (*EventPublish) String ¶ added in v0.0.3
func (e *EventPublish) String() string
type JobAdapter ¶
type JobAdapter struct { }
func (JobAdapter) CompileKey ¶
func (a JobAdapter) CompileKey(urn string) ([]byte, error)
func (JobAdapter) CompileMessage ¶
func (a JobAdapter) CompileMessage(jobMetadata *models.JobMetadata) ([]byte, error)
func (JobAdapter) FromJobSpec ¶
func (a JobAdapter) FromJobSpec(namespaceSpec models.NamespaceSpec, jobSpec models.JobSpec) (*models.JobMetadata, error)
type KafkaWriter ¶
type KafkaWriter interface { WriteMessages(context.Context, ...kafka.Message) error Close() error Stats() kafka.WriterStats }
KafkaWriter is an abstraction over kafka-go client implementation
type MetaSvcFactory ¶
type MetaSvcFactory interface {
New() models.MetadataService
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(writer models.MetadataWriter, builder models.JobMetadataAdapter) *Service
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer will be used to write send data to kafka topic
func NewWriter ¶
func NewWriter(w KafkaWriter, buffSize int) *Writer
NewWriter returns a instance for writer used over kafka client
Click to show internal directories.
Click to hide internal directories.