Documentation
¶
Overview ¶
Package nats provides connectivity implementation based on nats client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
*clientutil.BaseClient
// contains filtered or unexported fields
}
func (*Client) PostMsg ¶
func (c *Client) PostMsg(msg *aranyagopb.Msg) error
type Config ¶
type Config struct {
clientutil.CommonConfig `json:",inline" yaml:",inline"`
PingInterval time.Duration `json:"pingInterval" yaml:"pingInterval"`
SubjectNamespace string `json:"subjectNamespace" yaml:"subjectNamespace"`
// ClusterID of the nats streaming server
ClusterID string `json:"clusterID" yaml:"clusterID"`
// ClientID of the nats streaming client, will also be used as nats
// client Name (which is an optional name label sent to the server
// on CONNECT to identify the client)
ClientID string `json:"clientID" yaml:"clientID"`
MaxPendingPubAck int `json:"maxPendingPubAck" yaml:"maxPendingPubAck"`
// AckWait time to wait before resend message (both client and server)
AckWait time.Duration `json:"ackWait" yaml:"ackWait"`
Username string `json:"username" yaml:"username"`
Password string `json:"password" yaml:"password"`
Token string `json:"token" yaml:"token"`
NKey string `json:"nkey" yaml:"nkey"`
JWT string `json:"jwt" yaml:"jwt"`
}
Source Files
¶
- config.go
- doc.go
- nats.go
Click to show internal directories.
Click to hide internal directories.