infra

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 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 ConsumerMQ

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

func NewConsumerMQ

func NewConsumerMQ(rabbitCli *RabbitMQ) *ConsumerMQ

func (*ConsumerMQ) Get

type GRPC

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

func NewGRPC

func NewGRPC() *GRPC

func (*GRPC) Close

func (g *GRPC) Close()

func (*GRPC) GetConn

func (g *GRPC) GetConn(address string) (*grpc.ClientConn, error)

type HTTPCli

type HTTPCli struct {
	*http.Client
}

func NewHTTPCli

func NewHTTPCli() *HTTPCli

type MessageRabbit

type MessageRabbit struct {
	Body []byte
	Type string
}

type RabbitMQ

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

func NewRabbitMQ

func NewRabbitMQ(user, password, host, vhost string, port int) *RabbitMQ

func (*RabbitMQ) Close

func (r *RabbitMQ) Close()

func (*RabbitMQ) GetRabbitmqAMQP

func (r *RabbitMQ) GetRabbitmqAMQP() (*amqp.Connection, *amqp.Channel)

Jump to

Keyboard shortcuts

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