Documentation ¶
Overview ¶
Package rabbitmq provides a RabbitMQ common
Index ¶
- Variables
- func AckOnSuccess() broker.SubscribeOption
- func AckOnSuccessFromContext(ctx context.Context) (bool, bool)
- func AppID(value string) broker.PublishOption
- func ContentEncoding(value string) broker.PublishOption
- func ContentType(value string) broker.PublishOption
- func CorrelationID(value string) broker.PublishOption
- func DeliveryMode(value uint8) broker.PublishOption
- func DurableExchange() broker.Option
- func DurableQueue() broker.SubscribeOption
- func ExchangeName(e string) broker.Option
- func Expiration(value string) broker.PublishOption
- func ExternalAuth() broker.Option
- func Headers(h map[string]interface{}) broker.SubscribeOption
- func MessageId(value string) broker.PublishOption
- func NewBroker(opts ...broker.Option) broker.Broker
- func PrefetchCount(c int) broker.Option
- func PrefetchGlobal() broker.Option
- func Priority(value uint8) broker.PublishOption
- func QueueArguments(h map[string]interface{}) broker.SubscribeOption
- func ReplyTo(value string) broker.PublishOption
- func RequeueOnError() broker.SubscribeOption
- func SubscribeContext(ctx context.Context) broker.SubscribeOption
- func SubscribeContextFromContext(ctx context.Context) (context.Context, bool)
- func Timestamp(value time.Time) broker.PublishOption
- func TypeMsg(value string) broker.PublishOption
- func UserID(value string) broker.PublishOption
- type Exchange
- type ExternalAuthentication
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultExchange = Exchange{ Name: "amq.topic", } DefaultRabbitURL = "amqp://guest:guest@127.0.0.1:5672" DefaultPrefetchCount = 0 DefaultPrefetchGlobal = false DefaultRequeueOnError = false )
Functions ¶
func AckOnSuccess ¶
func AckOnSuccess() broker.SubscribeOption
func AppID ¶
func AppID(value string) broker.PublishOption
func ContentEncoding ¶
func ContentEncoding(value string) broker.PublishOption
func ContentType ¶
func ContentType(value string) broker.PublishOption
func CorrelationID ¶
func CorrelationID(value string) broker.PublishOption
func DeliveryMode ¶
func DeliveryMode(value uint8) broker.PublishOption
func DurableExchange ¶
func DurableQueue ¶
func DurableQueue() broker.SubscribeOption
func ExchangeName ¶
func Expiration ¶
func Expiration(value string) broker.PublishOption
func ExternalAuth ¶
func Headers ¶
func Headers(h map[string]interface{}) broker.SubscribeOption
func MessageId ¶
func MessageId(value string) broker.PublishOption
func PrefetchCount ¶
func PrefetchGlobal ¶
func Priority ¶
func Priority(value uint8) broker.PublishOption
func QueueArguments ¶
func QueueArguments(h map[string]interface{}) broker.SubscribeOption
func ReplyTo ¶
func ReplyTo(value string) broker.PublishOption
func RequeueOnError ¶
func RequeueOnError() broker.SubscribeOption
func SubscribeContext ¶
func SubscribeContext(ctx context.Context) broker.SubscribeOption
func TypeMsg ¶
func TypeMsg(value string) broker.PublishOption
func UserID ¶
func UserID(value string) broker.PublishOption
Types ¶
type ExternalAuthentication ¶
type ExternalAuthentication struct { }
func (*ExternalAuthentication) Mechanism ¶
func (auth *ExternalAuthentication) Mechanism() string
func (*ExternalAuthentication) Response ¶
func (auth *ExternalAuthentication) Response() string
Click to show internal directories.
Click to hide internal directories.