17 lines
441 B
Go
17 lines
441 B
Go
|
|
package rabbitmq_amqp
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
)
|
||
|
|
|
||
|
|
type IManagement interface {
|
||
|
|
Open(ctx context.Context, connection IConnection) error
|
||
|
|
Close(ctx context.Context) error
|
||
|
|
Queue(queueName string) IQueueSpecification
|
||
|
|
QueueClientName() IQueueSpecification
|
||
|
|
GetStatus() int
|
||
|
|
NotifyStatusChange(channel chan *StatusChanged)
|
||
|
|
Request(ctx context.Context, body any, path string, method string,
|
||
|
|
expectedResponseCodes []int) (map[string]any, error)
|
||
|
|
}
|