engines

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQP

type AMQP struct {
	ExchangeName    string
	ExchangeType    string
	ExchangeDurable bool
	PrefetchCount   uint8
	AutoAck         bool
	// contains filtered or unexported fields
}

func (*AMQP) Close

func (a *AMQP) Close() error

func (*AMQP) Connect

func (a *AMQP) Connect() error

func (*AMQP) Consumer

func (a *AMQP) Consumer(routingKey string) (Consumer, error)

func (*AMQP) IsConnected

func (a *AMQP) IsConnected() bool

func (*AMQP) MergeRoutingKeys

func (a *AMQP) MergeRoutingKeys(absolute, relative string) string

func (*AMQP) Run

func (a *AMQP) Run() error

type AMQPConsumer

type AMQPConsumer struct {
	*rabbitgo.Consumer
}

func (*AMQPConsumer) Close

func (a *AMQPConsumer) Close() error

func (*AMQPConsumer) Consume

func (a *AMQPConsumer) Consume(handlers []context.Handler) error

type AckOptions

type AckOptions struct {
	Multiple bool
	Requeue  bool
}

type Consumer

type Consumer interface {
	Consume(handlers []context.Handler) error
	Close() error
}

type Context

type Context struct {
	*rabbitgo.Delivery
}

func (*Context) Ack

func (c *Context) Ack(args ...interface{})

func (*Context) Nack

func (c *Context) Nack(args ...interface{})

func (*Context) Publish

func (c *Context) Publish(r *context.R)

func (*Context) Request

func (c *Context) Request() *context.R

type Engine

type Engine interface {
	MergeRoutingKeys(string, string) string
	Connect() error
	IsConnected() bool
	Close() error
	Consumer(routingKey string) (Consumer, error)
}

type HTTPSimple

type HTTPSimple struct {
	Address        string
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
	MaxHeaderBytes uint
}

func (*HTTPSimple) Close

func (h *HTTPSimple) Close() error

func (*HTTPSimple) Connect

func (h *HTTPSimple) Connect() error

func (*HTTPSimple) Consumer

func (h *HTTPSimple) Consumer(routingKey string) (Consumer, error)

func (*HTTPSimple) MergeRoutingKeys

func (h *HTTPSimple) MergeRoutingKeys(absolute, relative string) string

type HTTPSimpleConsumer

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

func (*HTTPSimpleConsumer) Close

func (h *HTTPSimpleConsumer) Close() error

func (*HTTPSimpleConsumer) Consume

func (h *HTTPSimpleConsumer) Consume(handlers []context.Handler) error

type HTTPSimpleContext

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

func (*HTTPSimpleContext) Ack

func (c *HTTPSimpleContext) Ack(args ...interface{})

func (*HTTPSimpleContext) Nack

func (c *HTTPSimpleContext) Nack(args ...interface{})

func (*HTTPSimpleContext) Publish

func (c *HTTPSimpleContext) Publish(r *context.R)

func (*HTTPSimpleContext) Request

func (c *HTTPSimpleContext) Request() *context.R

type Mock

type Mock struct {
	RoutingKey string
	Handlers   []context.Handler
	// contains filtered or unexported fields
}

func (*Mock) Close

func (m *Mock) Close() error

func (*Mock) Connect

func (m *Mock) Connect() error

func (*Mock) Consumer

func (m *Mock) Consumer(routingKey string) (Consumer, error)

func (*Mock) IsConnected

func (m *Mock) IsConnected() bool

func (*Mock) MergeRoutingKeys

func (m *Mock) MergeRoutingKeys(absolute, relative string) string

type MockConsumer

type MockConsumer struct {
	*Mock
	IsConnected bool
}

func (*MockConsumer) Close

func (m *MockConsumer) Close() error

func (*MockConsumer) Consume

func (m *MockConsumer) Consume(handlers []context.Handler) error

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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