amqpbasic

package
v0.0.0-...-75a6351 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MAXCLIENT int = 3
View Source
const MAXSESSION int = 20
View Source
const RMESSAGEMAX int = 10

Variables

This section is empty.

Functions

func ReceiveThread

func ReceiveThread(ctx context.Context)

Types

type AmqpClientHandler

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

type AmqpReceiverHandler

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

type AmqpSessionHandler

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

func (*AmqpSessionHandler) LinkConfig

func (as *AmqpSessionHandler) LinkConfig(option LinkOptions) int

func (*AmqpSessionHandler) LinkCreate

func (as *AmqpSessionHandler) LinkCreate(linkid string) int

func (*AmqpSessionHandler) LinkDelete

func (as *AmqpSessionHandler) LinkDelete(id string, ctx context.Context) int

func (*AmqpSessionHandler) ReceiverData

func (as *AmqpSessionHandler) ReceiverData(linkid string, num int) ([][]byte, int)

The function aims to receive message form the linkhandler and process this data.

func (*AmqpSessionHandler) SessionConfig

func (as *AmqpSessionHandler) SessionConfig(option *SessionOptions) int

func (*AmqpSessionHandler) SessionDelete

func (as *AmqpSessionHandler) SessionDelete(timeout int, ctx context.Context)

func (*AmqpSessionHandler) SessionFindLinkIndex

func (as *AmqpSessionHandler) SessionFindLinkIndex(id string) int

func (*AmqpSessionHandler) SessionInit

func (as *AmqpSessionHandler) SessionInit(id *SessionIdentify, try int, ctx context.Context) int

func (*AmqpSessionHandler) SessionSelectIndex

func (as *AmqpSessionHandler) SessionSelectIndex() int

type ClientOptions

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

type LinkOptions

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

type SessionIdentify

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

func SessionIdentifyInit

func SessionIdentifyInit(address string, username string, password string, sname string) *SessionIdentify

type SessionOptions

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

Jump to

Keyboard shortcuts

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