Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisConn ¶
func NewRedisConn(opts *redis.Options) (*redis.Client, error)
Types ¶
type Connections ¶
type Connections struct {
// contains filtered or unexported fields
}
func NewConnections ¶
func NewConnectionsFromConfig ¶
func NewConnectionsFromConfig(conf cfg.Services, ro bool) (*Connections, error)
func (Connections) Cache ¶
func (c Connections) Cache() *cache.Cache
func (Connections) Close ¶ added in v1.1.0
func (c Connections) Close() error
func (Connections) DB ¶
func (c Connections) DB() *db.Conn
func (Connections) Logger ¶ added in v1.1.0
func (c Connections) Logger() logging.Logger
func (Connections) Redis ¶
func (c Connections) Redis() *redis.Client
func (Connections) Stream ¶
func (c Connections) Stream() *health.Stream
type Consumable ¶
type Consumer ¶
type Consumer interface { Name() string Bootstrap(context.Context) error Consume(Consumable) error ConsumeConsensus(Consumable) error }
Consumer takes in Consumables and adds them to the service's backend
type ConsumerCtx ¶
type ConsumerCtx struct {
// contains filtered or unexported fields
}
ConsumerCtx
func NewConsumerContext ¶
func (ConsumerCtx) Ctx ¶
func (ic ConsumerCtx) Ctx() context.Context
func (ConsumerCtx) DB ¶
func (ic ConsumerCtx) DB() dbr.SessionRunner
func (ConsumerCtx) Job ¶
func (ic ConsumerCtx) Job() *health.Job
func (ConsumerCtx) Time ¶
func (ic ConsumerCtx) Time() time.Time
Click to show internal directories.
Click to hide internal directories.