Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserTokenAnonymous = "Anonymous" UserTokenUserName = "UserName" UserTokenCertificate = "Certificate" UserTokenIssuedToken = "IssuedToken" )
Variables ¶
This section is empty.
Functions ¶
func ListEndpoints ¶
ListEndpoints is a helper function intended for development in case there is uncertainty about the server and its endpoints.
func NewOPCUAClient ¶
func NewOPCUAClient(address string, securityPolicy string, messageSecurityMode string, userTokenType string, opts ...opcua.Option) (*client, error)
NewOPCUAClient creates and returns a new client for opc ua. It does not yet create the connection and calling ConnectToServer is required. The security policies are defined under constants at https://godoc.org/github.com/gopcua/opcua/ua#pkg-variables . The message security mode is either "Invalid", "None", "Sign" or "SignAndEncrypt".
Types ¶
type Client ¶
type Client interface { ConnectToServer() error Disconnect() error SubscribeNodes(nodePaths []string, opts ClientSubscribeOptions) error ListenData(targetChannel chan DataPackage) }
type ClientSubscribeOptions ¶
type DataPackage ¶
type DataPackage struct { Timestamp time.Time Value interface{} Path string Status ua.StatusCode }
Click to show internal directories.
Click to hide internal directories.