nats

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientNode

type ClientNode struct {
	base.SharedNode[*nats.Conn]
	// 节点配置
	Config ClientNodeConfiguration
	// contains filtered or unexported fields
}

func (*ClientNode) Destroy

func (x *ClientNode) Destroy()

Destroy 销毁

func (*ClientNode) Init

func (x *ClientNode) Init(ruleConfig types.Config, configuration types.Configuration) error

Init 初始化

func (*ClientNode) New

func (x *ClientNode) New() types.Node

func (*ClientNode) OnMsg

func (x *ClientNode) OnMsg(ctx types.RuleContext, msg types.RuleMsg)

OnMsg 处理消息

func (*ClientNode) Type

func (x *ClientNode) Type() string

Type 组件类型

type ClientNodeConfiguration

type ClientNodeConfiguration struct {
	// NATS服务器地址
	Server string
	// NATS用户名
	Username string
	// NATS密码
	Password string
	// 发布主题
	Topic string
}

Jump to

Keyboard shortcuts

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