Documentation ¶
Index ¶
- Constants
- func ReceiveThread(ctx context.Context)
- type AmqpClientHandler
- type AmqpReceiverHandler
- type AmqpSessionHandler
- func (as *AmqpSessionHandler) LinkConfig(option LinkOptions) int
- func (as *AmqpSessionHandler) LinkCreate(linkid string) int
- func (as *AmqpSessionHandler) LinkDelete(id string, ctx context.Context) int
- func (as *AmqpSessionHandler) ReceiverData(linkid string, num int) ([][]byte, int)
- func (as *AmqpSessionHandler) SessionConfig(option *SessionOptions) int
- func (as *AmqpSessionHandler) SessionDelete(timeout int, ctx context.Context)
- func (as *AmqpSessionHandler) SessionFindLinkIndex(id string) int
- func (as *AmqpSessionHandler) SessionInit(id *SessionIdentify, try int, ctx context.Context) int
- func (as *AmqpSessionHandler) SessionSelectIndex() int
- type ClientOptions
- type LinkOptions
- type SessionIdentify
- type SessionOptions
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 ¶
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
}
Click to show internal directories.
Click to hide internal directories.