src

package
v1.7.2-release Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BIFROST_VERION = "v1.0.0"
View Source
const VERSION = "v1.6.0"

Variables

This section is empty.

Functions

func NewConn

func NewConn() pluginDriver.Driver

Types

type Conn

type Conn struct {
	pluginDriver.PluginDriverInterface
	// contains filtered or unexported fields
}

func (*Conn) CheckUri

func (This *Conn) CheckUri() error

func (*Conn) Close

func (This *Conn) Close() bool

func (*Conn) Commit

func (This *Conn) Commit(data *pluginDriver.PluginDataType, retry bool) (LastSuccessCommitData *pluginDriver.PluginDataType, ErrData *pluginDriver.PluginDataType, err error)

func (*Conn) Connect

func (This *Conn) Connect() bool

func (*Conn) Declare

func (This *Conn) Declare(Queue *string, Exchange *string, RoutingKey *string) error

func (*Conn) GetParam

func (This *Conn) GetParam(p interface{}) (*PluginParam, error)

func (*Conn) GetUriExample

func (This *Conn) GetUriExample() string

func (*Conn) Open

func (This *Conn) Open() error

func (*Conn) ReConnect

func (This *Conn) ReConnect() bool

func (*Conn) SendAndNoWait

func (This *Conn) SendAndNoWait(exchange *string, routingkey *string, c *[]byte, DeliveryMode uint8) (bool, error)

func (*Conn) SendAndWait

func (This *Conn) SendAndWait(exchange *string, routingkey *string, c *[]byte, DeliveryMode uint8) (bool, error)

func (*Conn) SetOption

func (This *Conn) SetOption(uri *string, param map[string]interface{})

func (*Conn) SetParam

func (This *Conn) SetParam(p interface{}) (interface{}, error)

func (*Conn) TimeOutCommit

func (This *Conn) TimeOutCommit() (*pluginDriver.PluginDataType, *pluginDriver.PluginDataType, error)

type Exchange

type Exchange struct {
	Name       string
	Type       string
	Durable    bool
	AutoDelete bool
}

type PluginParam

type PluginParam struct {
	Queue      Queue
	Exchange   Exchange
	Confirm    bool
	Persistent bool
	RoutingKey string
	Expir      int
	Declare    bool

	BifrostFilterQuery bool // bifrost server 保留,是否过滤sql事件
	// contains filtered or unexported fields
}

type Queue

type Queue struct {
	Name       string
	Durable    bool
	AutoDelete bool
}

Jump to

Keyboard shortcuts

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