rabbitmq

package
v0.0.0-...-57a0f16 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(rabbit *RabbitMQ)

Option represents an option for the api

func Host

func Host(host string) Option

func Port

func Port(port int) Option

func UserRepo

func UserRepo(userRepo model.UserRepo) Option

func WithLogger

func WithLogger(logger zerolog.Logger) Option

WithLogger adds a configured Logger to the auth

type RabbitMQ

type RabbitMQ struct {
	// contains filtered or unexported fields
}

func New

func New(user, password string, options ...Option) (*RabbitMQ, error)

func (*RabbitMQ) Add

func (rmq *RabbitMQ) Add(user model.User) error

func (*RabbitMQ) Close

func (rmq *RabbitMQ) Close() error

Jump to

Keyboard shortcuts

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