Documentation ¶
Overview ¶
* Copyright 2023 Caio Matheus Marcatti Calimério * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2023 Caio Matheus Marcatti Calimério * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2023 Caio Matheus Marcatti Calimério * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- type DataConnection
- type Example
- type ExchangeType
- type IConfig
- type IConsumer
- type IQueue
- type Queue
- type QueueMetrics
- type Rabbitmq
- func (r *Rabbitmq) Configure(args ...interface{}) error
- func (r *Rabbitmq) Connect() error
- func (r *Rabbitmq) Consume(queue Queue, consumerHandler interface{}) error
- func (r *Rabbitmq) Disconnect() error
- func (r *Rabbitmq) Publish(exchange string, routingKey string, body interface{}) (err error)
- func (r *Rabbitmq) SetPrefetch(prefetchCount int) error
- type RabbitmqExchange
- type RabbitmqQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataConnection ¶
type ExchangeType ¶
type ExchangeType string
const ( Direct ExchangeType = "direct" Fanout ExchangeType = "fanout" Topic ExchangeType = "topic" Headers ExchangeType = "headers" )
type IQueue ¶
type IQueue interface { Connect() error Configure(args ...interface{}) error Consume(queue Queue, consumerHandler interface{}) error Publish(exchange string, routingKey string, body interface{}) error Disconnect() error }
type QueueMetrics ¶
type QueueMetrics string
const ( QueueManagerConnected QueueMetrics = "queue_manager_connected" QueueExchangeCreated QueueMetrics = "queue_exchange_created" QueueCreated QueueMetrics = "queue_created" QueueBindExchange QueueMetrics = "queue_binded" QueueConsummerConnected QueueMetrics = "queue_consummer_connected" QueueMessageAck QueueMetrics = "queue_messages_ack" QueueMessageNack QueueMetrics = "queue_messages_nack" QueueMessagePublish QueueMetrics = "queue_messages_publish" )
func (QueueMetrics) String ¶
func (qm QueueMetrics) String() string
type Rabbitmq ¶
type Rabbitmq struct { DataConnection DataConnection Connection *amqp.Connection Channel *amqp.Channel // contains filtered or unexported fields }