Documentation ¶
Index ¶
- type CompareMsg
- type NatsClient
- func (n *NatsClient) PublishToDev(ctx context.Context, respMsg *deviceMsg.PublishMsg) error
- func (n *NatsClient) ReqToDeviceSync(ctx context.Context, reqMsg *deviceMsg.PublishMsg, timeout time.Duration, ...) (payload []byte, err error)
- func (n *NatsClient) ReqToDeviceSync2(ctx context.Context, reqMsg *deviceMsg.PublishMsg, compareMsg CompareMsg) ([]byte, error)
- type PubDev
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareMsg ¶
type NatsClient ¶
type NatsClient struct {
// contains filtered or unexported fields
}
func (*NatsClient) PublishToDev ¶
func (n *NatsClient) PublishToDev(ctx context.Context, respMsg *deviceMsg.PublishMsg) error
func (*NatsClient) ReqToDeviceSync ¶
func (n *NatsClient) ReqToDeviceSync(ctx context.Context, reqMsg *deviceMsg.PublishMsg, timeout time.Duration, compareMsg CompareMsg) ( payload []byte, err error)
func (*NatsClient) ReqToDeviceSync2 ¶
func (n *NatsClient) ReqToDeviceSync2(ctx context.Context, reqMsg *deviceMsg.PublishMsg, compareMsg CompareMsg) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.