Documentation ¶
Index ¶
- Variables
- func GenerateCert(host string, rsaBits int, validFor time.Duration) (certPEM, keyPEM []byte, err error)
- func ParseNodeIDs(incomingNodes []string) []*ua.NodeID
- func ParseTriggerNodeIDs(incomingTNodes []string) []*ua.NodeID
- type NodeDef
- type OPCUAInput
- func (g *OPCUAInput) Close(ctx context.Context) error
- func (g *OPCUAInput) Connect(ctx context.Context) error
- func (g *OPCUAInput) ReadBatch(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
- func (g *OPCUAInput) ReadBatchPull(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
- func (g *OPCUAInput) ReadBatchSubscribe(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
- type OPCUATriInput
- func (g *OPCUATriInput) Close(ctx context.Context) error
- func (g *OPCUATriInput) Connect(ctx context.Context) error
- func (g *OPCUATriInput) ReadBatch(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
- func (g *OPCUATriInput) ReadBatchPull(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
- func (g *OPCUATriInput) ReadBatchSubscribe(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
- func (g *OPCUATriInput) ReadTriggerBatchPull(ctx context.Context, node TNodeDef, nodeID string) (map[string]string, service.AckFunc, error)
- func (g *OPCUATriInput) ReadTriggerBatchSubscribe(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
- type TNodeDef
Constants ¶
This section is empty.
Variables ¶
View Source
var OPCUAConfigSpec = service.NewConfigSpec(). Summary("Creates an input that reads data from OPC-UA servers. Created & maintained by the United Manufacturing Hub. About us: www.umh.app"). Field(service.NewStringField("endpoint").Description("Address of the OPC-UA server to connect with.")). Field(service.NewStringField("username").Description("Username for server access. If not set, no username is used.").Default("")). Field(service.NewStringField("password").Description("Password for server access. If not set, no password is used.").Default("")). Field(service.NewStringListField("nodeIDs").Description("List of OPC-UA node IDs to begin browsing.")). Field(service.NewStringField("securityMode").Description("Security mode to use. If not set, a reasonable security mode will be set depending on the discovered endpoints.").Default("")). Field(service.NewStringField("securityPolicy").Description("The security policy to use. If not set, a reasonable security policy will be set depending on the discovered endpoints.").Default("")). Field(service.NewBoolField("insecure").Description("Set to true to bypass secure connections, useful in case of SSL or certificate issues. Default is secure (false).").Default(false)). Field(service.NewBoolField("subscribeEnabled").Description("Set to true to subscribe to OPC-UA nodes instead of fetching them every seconds. Default is pulling messages every second (false).").Default(false))
View Source
var OPCUATriConfigSpec = service.NewConfigSpec(). Summary("Creates an input that reads data from OPC-UA servers"). Field(service.NewStringField("endpoint").Description("Address of the OPC-UA server to connect with.")). Field(service.NewStringField("username").Description("Username for server access. If not set, no username is used.").Default("")). Field(service.NewStringField("password").Description("Password for server access. If not set, no password is used.").Default("")). Field(service.NewStringListField("tNodeIDs").Description("List of OPC-UA trigger node IDs.")). Field(service.NewStringListField("tBatchNodeIDs").Description("List of OPC-UA trigger batch node IDs.")). Field(service.NewStringField("securityMode").Description("Security mode to use. If not set, a reasonable security mode will be set depending on the discovered endpoints.").Default("")). Field(service.NewStringField("securityPolicy").Description("The security policy to use. If not set, a reasonable security policy will be set depending on the discovered endpoints.").Default("")). Field(service.NewBoolField("insecure").Description("Set to true to bypass secure connections, useful in case of SSL or certificate issues. Default is secure (false).").Default(false)). Field(service.NewBoolField("subscribeEnabled").Description("Set to true to subscribe to OPC-UA nodes instead of fetching them every seconds. Default is pulling messages every second (false).").Default(false))
Functions ¶
func GenerateCert ¶
func ParseNodeIDs ¶
func ParseTriggerNodeIDs ¶
Types ¶
type NodeDef ¶
type OPCUAInput ¶
type OPCUAInput struct {
// contains filtered or unexported fields
}
func (*OPCUAInput) ReadBatch ¶
func (g *OPCUAInput) ReadBatch(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
func (*OPCUAInput) ReadBatchPull ¶
func (g *OPCUAInput) ReadBatchPull(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
func (*OPCUAInput) ReadBatchSubscribe ¶
func (g *OPCUAInput) ReadBatchSubscribe(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
type OPCUATriInput ¶
type OPCUATriInput struct {
// contains filtered or unexported fields
}
func (*OPCUATriInput) ReadBatch ¶
func (g *OPCUATriInput) ReadBatch(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
func (*OPCUATriInput) ReadBatchPull ¶
func (g *OPCUATriInput) ReadBatchPull(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
func (*OPCUATriInput) ReadBatchSubscribe ¶
func (g *OPCUATriInput) ReadBatchSubscribe(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
func (*OPCUATriInput) ReadTriggerBatchPull ¶
func (*OPCUATriInput) ReadTriggerBatchSubscribe ¶
func (g *OPCUATriInput) ReadTriggerBatchSubscribe(ctx context.Context) (service.MessageBatch, service.AckFunc, error)
Click to show internal directories.
Click to hide internal directories.