Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connections ¶
type Connections struct {
// contains filtered or unexported fields
}
func NewConnections ¶
func NewConnections(stream *health.Stream, dbConn *dbr.Connection, redisClient *redis.Client) *Connections
func NewConnectionsFromConfig ¶
func NewConnectionsFromConfig(conf cfg.ServiceConfig) (*Connections, error)
func (Connections) DB ¶
func (c Connections) DB() *dbr.Connection
func (Connections) Redis ¶
func (c Connections) Redis() *redis.Client
func (Connections) Stream ¶
func (c Connections) Stream() *health.Stream
type FanOutService ¶
type FanOutService []Service
FanOutService takes in items and sends them to multiple backend Services
func (FanOutService) Add ¶
func (fos FanOutService) Add(i Ingestable) (err error)
Add takes in an Ingestable and sends it to all underlying backends
type Ingestable ¶
type Service ¶
type Service interface {
Add(Ingestable) error
}
Service takes in Ingestables and adds them to the services backend
Click to show internal directories.
Click to hide internal directories.