rabdis

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPrefix = "RABDIS"

ConfigPrefix defines the configuration prefix

Functions

This section is empty.

Types

type Option

type Option func(*Options)

Option represents a Rabdis option

func Logger

func Logger(logger logger.Logger) Option

Logger returns logger option

type Options

type Options struct {
	Logger logger.Logger `ignored:"true" json:"-"`

	ConfigFile string `default:"rabdis.yaml" envconfig:"CONFIG_FILE"`
}

Options represents the Rabdis options

type Rabdis

type Rabdis interface {
	SetRabbitMQ(rabbitmq.RabbitMQ)
	SetRedis(redis.Redis)
	SetMetrics(metrics.Metrics)
	SetHealth(health.Health)

	Start()
}

Rabdis represents the Rabdis interface

func New

func New(opts ...Option) (Rabdis, error)

New creates a new Rabdis instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL