sampler-fork/data/consumer.go

23 lines
305 B
Go

package data
type Consumer struct {
SampleChannel chan Sample
AlertChannel chan Alert
}
type Sample struct {
Label string
Value string
}
type Alert struct {
Text string
}
func NewConsumer() Consumer {
return Consumer{
SampleChannel: make(chan Sample),
AlertChannel: make(chan Alert),
}
}