Documentation ¶
Index ¶
- type ErrNotFound
- type MessagesRepo
- func (r *MessagesRepo) Create(msg spec.MessageSpec) error
- func (r *MessagesRepo) Find(topic string) (spec.MessageSpec, error)
- func (r *MessagesRepo) FindAll() ([]spec.MessageSpec, error)
- func (r *MessagesRepo) FindByExchange(exchange string) ([]spec.MessageSpec, error)
- func (r *MessagesRepo) Migrate()
- func (r *MessagesRepo) Update(msg spec.MessageSpec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrNotFound ¶
type ErrNotFound struct {
// contains filtered or unexported fields
}
ErrNotFound is returned when a message is not found
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
type MessagesRepo ¶
type MessagesRepo struct {
// contains filtered or unexported fields
}
MessagesRepo is the repo for storing messages
func (*MessagesRepo) Create ¶
func (r *MessagesRepo) Create(msg spec.MessageSpec) error
Create a message spec
func (*MessagesRepo) Find ¶
func (r *MessagesRepo) Find(topic string) (spec.MessageSpec, error)
Find a message spec by topic
func (*MessagesRepo) FindAll ¶
func (r *MessagesRepo) FindAll() ([]spec.MessageSpec, error)
FindAll returns all messages
func (*MessagesRepo) FindByExchange ¶
func (r *MessagesRepo) FindByExchange(exchange string) ([]spec.MessageSpec, error)
FindByExchange finds all messages for a exchange
func (*MessagesRepo) Migrate ¶
func (r *MessagesRepo) Migrate()
Migrate runs migrations for the messages repo
func (*MessagesRepo) Update ¶
func (r *MessagesRepo) Update(msg spec.MessageSpec) error
Update a message spec
Click to show internal directories.
Click to hide internal directories.