Documentation ¶
Index ¶
- Constants
- type DefaultAPP
- func (app *DefaultAPP) Publish(subj string, data interface{}) error
- func (app *DefaultAPP) QueueSubscribe(subj string, handle Handle) error
- func (app *DefaultAPP) Request(ctx context.Context, subj string, req interface{}) (interface{}, error)
- func (app *DefaultAPP) Subscribe(subj string, handle Handle) error
- type DefaultAPPReq
- type DefaultAPPResp
- type Handle
- type MsgpEncoder
- type NATClient
- func (p *NATClient) Destroy()
- func (p *NATClient) Publish(subj string, data interface{}) error
- func (p *NATClient) QueueSubscribe(subj string, handle Handle) error
- func (p *NATClient) Request(ctx context.Context, subj string, req interface{}, resp interface{}) error
- func (p *NATClient) Subscribe(subj string, handle Handle) error
- type NatXAPP
Constants ¶
View Source
const ( SUBJ_PRE = "NCSUBJ-" QUEUE_PRE = "NCQUE-" )
默认为subj和queue名称加前缀
View Source
const (
MSGP_ENCODER = "msgp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultAPP ¶
type DefaultAPP struct {
// contains filtered or unexported fields
}
func (*DefaultAPP) Publish ¶
func (app *DefaultAPP) Publish(subj string, data interface{}) error
func (*DefaultAPP) QueueSubscribe ¶
func (app *DefaultAPP) QueueSubscribe(subj string, handle Handle) error
type DefaultAPPReq ¶
type DefaultAPPResp ¶
type MsgpEncoder ¶
type MsgpEncoder struct { }
type NATClient ¶
type NATClient struct {
// contains filtered or unexported fields
}
func NewNATClient ¶
func (*NATClient) QueueSubscribe ¶
Click to show internal directories.
Click to hide internal directories.