client

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitmqClient

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

func NewRabbitmqClient

func NewRabbitmqClient(url, queueFrom, queueFromResponse string, queueTo []string, prefetchCount int) (*RabbitmqClient, error)

func NewRabbitmqClientWithConfig

func NewRabbitmqClientWithConfig(config types.RabbitmqConfig) (*RabbitmqClient, error)

func (*RabbitmqClient) Close

func (r *RabbitmqClient) Close() error

func (*RabbitmqClient) CreateChannel

func (r *RabbitmqClient) CreateChannel() (*amqp.Channel, error)

func (*RabbitmqClient) Iterator

func (r *RabbitmqClient) Iterator() (<-chan types.RabbitmqMessage, error)

func (*RabbitmqClient) NewSessionFlowClient

func (c *RabbitmqClient) NewSessionFlowClient(sessionID string) *SessionFlowClient

func (*RabbitmqClient) Send

func (r *RabbitmqClient) Send(sendQueue string, payload interface{}) error

func (*RabbitmqClient) SessionKeepRequest

func (r *RabbitmqClient) SessionKeepRequest(ctx context.Context, sendQueue string, payload interface{}) (types.RabbitmqMessage, error)

func (*RabbitmqClient) Stop

func (r *RabbitmqClient) Stop() error

type SessionFlowClient

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

func (*SessionFlowClient) Send

func (c *SessionFlowClient) Send(sendQueue string, payload interface{}) error

Jump to

Keyboard shortcuts

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