Versions in this module Expand all Collapse all v0 v0.0.2 Feb 13, 2026 v0.0.1 Feb 12, 2026 Changes in this version + const OPC_BRANCH — windows/amd64 + const OPC_BROWSE_DOWN — windows/amd64 + const OPC_BROWSE_TO — windows/amd64 + const OPC_BROWSE_UP — windows/amd64 + const OPC_DS_CACHE — windows/amd64 + const OPC_DS_DEVICE — windows/amd64 + const OPC_ENUM_ALL — windows/amd64 + const OPC_ENUM_ALL_CONNECTIONS — windows/amd64 + const OPC_ENUM_PRIVATE — windows/amd64 + const OPC_ENUM_PRIVATE_CONNECTIONS — windows/amd64 + const OPC_ENUM_PUBLIC — windows/amd64 + const OPC_ENUM_PUBLIC_CONNECTIONS — windows/amd64 + const OPC_FLAT — windows/amd64 + const OPC_LEAF — windows/amd64 + const OPC_NS_FLAT — windows/amd64 + const OPC_NS_HIERARCHIAL — windows/amd64 + const OPC_READABLE — windows/amd64 + const OPC_STATUS_COMM_FAULT — windows/amd64 + const OPC_STATUS_FAILED — windows/amd64 + const OPC_STATUS_NOCONFIG — windows/amd64 + const OPC_STATUS_RUNNING — windows/amd64 + const OPC_STATUS_SUSPENDED — windows/amd64 + const OPC_STATUS_TEST — windows/amd64 + const OPC_WRITEABLE — windows/amd64 + var IID_CATID_OPCDAServer10 = windows.GUID — windows/amd64 + var IID_CATID_OPCDAServer20 = windows.GUID — windows/amd64 + var IID_IOPCDataCallback = windows.GUID — windows/amd64 + var IID_IOPCShutdown = windows.GUID — windows/amd64 + var OPCBadRights = uint32(0xC0040006) — windows/amd64 + var OPCBadType = uint32(0xC0040004) — windows/amd64 + var OPCClamp = uint32(0x0004000E) — windows/amd64 + var OPCDuplicateName = uint32(0xC004000C) — windows/amd64 + var OPCInuse = uint32(0x0004000F) — windows/amd64 + var OPCInvalidConfig = uint32(0xC0040010) — windows/amd64 + var OPCInvalidFilter = uint32(0xC0040009) — windows/amd64 + var OPCInvalidHandle = uint32(0xC0040001) — windows/amd64 + var OPCInvalidItemID = uint32(0xC0040008) — windows/amd64 + var OPCInvalidPID = uint32(0xC0040203) — windows/amd64 + var OPCNotFound = uint32(0xC0040011) — windows/amd64 + var OPCPublic = uint32(0xC0040005) — windows/amd64 + var OPCRange = uint32(0xC004000B) — windows/amd64 + var OPCUnknownItemID = uint32(0xC0040007) — windows/amd64 + var OPCUnknownPath = uint32(0xC004000A) — windows/amd64 + var OPCUnsupportedRate = uint32(0x0004000D) — windows/amd64 + func DataAddRef(this unsafe.Pointer) uintptr — windows/amd64 + func DataOnCancelComplete(this unsafe.Pointer, dwTransid uint32, hGroup uint32) uintptr — windows/amd64 + func DataOnDataChange(this unsafe.Pointer, dwTransid uint32, hGroup uint32, hrMasterquality int32, ...) uintptr — windows/amd64 + func DataOnReadComplete(this unsafe.Pointer, dwTransid uint32, hGroup uint32, hrMasterquality int32, ...) uintptr — windows/amd64 + func DataOnWriteComplete(this unsafe.Pointer, dwTransid uint32, hGroup uint32, hrMastererr int32, ...) uintptr — windows/amd64 + func DataQueryInterface(this unsafe.Pointer, iid *windows.GUID, punk *unsafe.Pointer) uintptr — windows/amd64 + func DataRelease(this unsafe.Pointer) uintptr — windows/amd64 + func NewOPCWrapperError(info string, err error) error — windows/amd64 + func ShutdownAddRef(this unsafe.Pointer) uintptr — windows/amd64 + func ShutdownQueryInterface(this unsafe.Pointer, iid *windows.GUID, punk *unsafe.Pointer) uintptr — windows/amd64 + func ShutdownRelease(this unsafe.Pointer) uintptr — windows/amd64 + func ShutdownRequest(this *com.IUnknown, pReason *uint16) uintptr — windows/amd64 + type CCancelCompleteCallBackData struct — windows/amd64 + GroupHandle uint32 + TransID uint32 + type CDataChangeCallBackData struct — windows/amd64 + Errors []int32 + GroupHandle uint32 + ItemClientHandles []uint32 + MasterErr int32 + MasterQuality int32 + Qualities []uint16 + TimeStamps []time.Time + TransID uint32 + Values []interface{} + type CReadCompleteCallBackData struct — windows/amd64 + Errors []int32 + GroupHandle uint32 + ItemClientHandles []uint32 + MasterErr int32 + MasterQuality int32 + Qualities []uint16 + TimeStamps []time.Time + TransID uint32 + Values []interface{} + type CWriteCompleteCallBackData struct — windows/amd64 + Errors []int32 + GroupHandle uint32 + ItemClientHandles []uint32 + MasterErr int32 + TransID uint32 + type CancelCompleteCallBackData struct — windows/amd64 + GroupHandle uint32 + TransID uint32 + type DataChangeCallBackData struct — windows/amd64 + Errors []error + GroupHandle uint32 + ItemClientHandles []uint32 + MasterErr error + MasterQuality int32 + Qualities []uint16 + TimeStamps []time.Time + TransID uint32 + Values []interface{} + type DataEventReceiver struct — windows/amd64 + func NewDataEventReceiver(dataChangeReceiver chan *CDataChangeCallBackData, ...) *DataEventReceiver + type DataEventReceiverVtbl struct — windows/amd64 + type OPCBrowser struct — windows/amd64 + func NewOPCBrowser(parent *OPCServer) (*OPCBrowser, error) + func (b *OPCBrowser) GetAccessRights() uint32 + func (b *OPCBrowser) GetCount() int + func (b *OPCBrowser) GetCurrentPosition() (string, error) + func (b *OPCBrowser) GetDataType() uint16 + func (b *OPCBrowser) GetFilter() string + func (b *OPCBrowser) GetItemID(leaf string) (string, error) + func (b *OPCBrowser) GetOrganization() (com.OPCNAMESPACETYPE, error) + func (b *OPCBrowser) Item(index int) (string, error) + func (b *OPCBrowser) MoveDown(name string) error + func (b *OPCBrowser) MoveTo(branches []string) error + func (b *OPCBrowser) MoveToRoot() + func (b *OPCBrowser) MoveUp() error + func (b *OPCBrowser) Release() + func (b *OPCBrowser) SetAccessRights(accessRights uint32) error + func (b *OPCBrowser) SetDataType(dataType uint16) + func (b *OPCBrowser) SetFilter(filter string) + func (b *OPCBrowser) ShowBranches() error + func (b *OPCBrowser) ShowLeafs(flat bool) error + type OPCError struct — windows/amd64 + ErrorCode int32 + ErrorMessage string + func (e *OPCError) Error() string + type OPCGroup struct — windows/amd64 + func NewOPCGroup(opcGroups *OPCGroups, iUnknown *com.IUnknown, clientGroupHandle uint32, ...) (*OPCGroup, error) + func (g *OPCGroup) AsyncCancel(cancelID uint32) error + func (g *OPCGroup) AsyncRead(serverHandles []uint32, clientTransactionID uint32) (cancelID uint32, errs []error, err error) + func (g *OPCGroup) AsyncRefresh(source com.OPCDATASOURCE, clientTransactionID uint32) (cancelID uint32, err error) + func (g *OPCGroup) AsyncWrite(serverHandles []uint32, values []interface{}, clientTransactionID uint32) (cancelID uint32, errs []error, err error) + func (g *OPCGroup) GetClientHandle() uint32 + func (g *OPCGroup) GetDeadband() (float32, error) + func (g *OPCGroup) GetIsActive() bool + func (g *OPCGroup) GetLocaleID() (uint32, error) + func (g *OPCGroup) GetName() string + func (g *OPCGroup) GetParent() *OPCGroups + func (g *OPCGroup) GetServerHandle() uint32 + func (g *OPCGroup) GetTimeBias() (int32, error) + func (g *OPCGroup) GetUpdateRate() (uint32, error) + func (g *OPCGroup) OPCItems() *OPCItems + func (g *OPCGroup) RegisterCancelComplete(ch chan *CancelCompleteCallBackData) error + func (g *OPCGroup) RegisterDataChange(ch chan *DataChangeCallBackData) error + func (g *OPCGroup) RegisterReadComplete(ch chan *ReadCompleteCallBackData) error + func (g *OPCGroup) RegisterWriteComplete(ch chan *WriteCompleteCallBackData) error + func (g *OPCGroup) Release() + func (g *OPCGroup) SetClientHandle(clientHandle uint32) error + func (g *OPCGroup) SetDeadband(deadband float32) error + func (g *OPCGroup) SetIsActive(isActive bool) error + func (g *OPCGroup) SetLocaleID(id uint32) error + func (g *OPCGroup) SetName(name string) error + func (g *OPCGroup) SetTimeBias(timeBias int32) error + func (g *OPCGroup) SetUpdateRate(updateRate uint32) error + func (g *OPCGroup) SyncRead(source com.OPCDATASOURCE, serverHandles []uint32) ([]*com.ItemState, []error, error) + func (g *OPCGroup) SyncWrite(serverHandles []uint32, values []interface{}) ([]error, error) + type OPCGroups struct — windows/amd64 + func NewOPCGroups(opcServer *OPCServer) *OPCGroups + func (gs *OPCGroups) Add(szName string) (*OPCGroup, error) + func (gs *OPCGroups) GetCount() int + func (gs *OPCGroups) GetDefaultGroupDeadband() float32 + func (gs *OPCGroups) GetDefaultGroupIsActive() bool + func (gs *OPCGroups) GetDefaultGroupLocaleID() uint32 + func (gs *OPCGroups) GetDefaultGroupTimeBias() int32 + func (gs *OPCGroups) GetDefaultGroupUpdateRate() uint32 + func (gs *OPCGroups) GetOPCGroup(serverHandle uint32) (*OPCGroup, error) + func (gs *OPCGroups) GetOPCGroupByName(name string) (*OPCGroup, error) + func (gs *OPCGroups) GetParent() *OPCServer + func (gs *OPCGroups) Item(index int32) (*OPCGroup, error) + func (gs *OPCGroups) ItemByName(name string) (*OPCGroup, error) + func (gs *OPCGroups) Release() error + func (gs *OPCGroups) Remove(serverHandle uint32) error + func (gs *OPCGroups) RemoveAll() error + func (gs *OPCGroups) RemoveByName(name string) error + func (gs *OPCGroups) SetDefaultGroupDeadband(defaultDeadband float32) + func (gs *OPCGroups) SetDefaultGroupIsActive(defaultActive bool) + func (gs *OPCGroups) SetDefaultGroupLocaleID(defaultLocaleID uint32) + func (gs *OPCGroups) SetDefaultGroupTimeBias(defaultGroupTimeBias int32) + func (gs *OPCGroups) SetDefaultGroupUpdateRate(defaultGroupUpdateRate uint32) + type OPCItem struct — windows/amd64 + func NewOPCItem(parent *OPCItems, tag string, result com.TagOPCITEMRESULTStruct, ...) *OPCItem + func (i *OPCItem) GetAccessPath() string + func (i *OPCItem) GetAccessRights() uint32 + func (i *OPCItem) GetCanonicalDataType() com.VT + func (i *OPCItem) GetClientHandle() uint32 + func (i *OPCItem) GetEUInfo() (interface{}, error) + func (i *OPCItem) GetEUType() (int, error) + func (i *OPCItem) GetIsActive() bool + func (i *OPCItem) GetItemID() string + func (i *OPCItem) GetParent() *OPCItems + func (i *OPCItem) GetQuality() uint16 + func (i *OPCItem) GetRequestedDataType() com.VT + func (i *OPCItem) GetServerHandle() uint32 + func (i *OPCItem) GetTimestamp() time.Time + func (i *OPCItem) GetValue() interface{} + func (i *OPCItem) Read(source com.OPCDATASOURCE) (interface{}, uint16, time.Time, error) + func (i *OPCItem) Release() + func (i *OPCItem) SetClientHandle(clientHandle uint32) error + func (i *OPCItem) SetIsActive(isActive bool) error + func (i *OPCItem) SetRequestedDataType(requestedDataType com.VT) error + func (i *OPCItem) Write(value interface{}) error + type OPCItems struct — windows/amd64 + func NewOPCItems(parent *OPCGroup, itemMgt *com.IOPCItemMgt, iCommon *com.IOPCCommon) *OPCItems + func (is *OPCItems) AddItem(tag string) (*OPCItem, error) + func (is *OPCItems) AddItems(tags []string) ([]*OPCItem, []error, error) + func (is *OPCItems) GetCount() int + func (is *OPCItems) GetDefaultAccessPath() string + func (is *OPCItems) GetDefaultActive() bool + func (is *OPCItems) GetDefaultRequestedDataType() com.VT + func (is *OPCItems) GetOPCItem(serverHandle uint32) (*OPCItem, error) + func (is *OPCItems) GetParent() *OPCGroup + func (is *OPCItems) Item(index int32) (*OPCItem, error) + func (is *OPCItems) ItemByName(name string) (*OPCItem, error) + func (is *OPCItems) Release() + func (is *OPCItems) Remove(serverHandles []uint32) + func (is *OPCItems) SetActive(serverHandles []uint32, active bool) []error + func (is *OPCItems) SetClientHandles(serverHandles []uint32, clientHandles []uint32) []error + func (is *OPCItems) SetDataTypes(serverHandles []uint32, requestedDataTypes []com.VT) []error + func (is *OPCItems) SetDefaultAccessPath(defaultAccessPath string) + func (is *OPCItems) SetDefaultActive(defaultActive bool) + func (is *OPCItems) SetDefaultRequestedDataType(defaultRequestedDataType com.VT) + func (is *OPCItems) Validate(tags []string, requestedDataTypes *[]com.VT, accessPaths *[]string) ([]error, error) + type OPCServer struct — windows/amd64 + Name string + Node string + func Connect(progID, node string) (opcServer *OPCServer, err error) + func (s *OPCServer) CreateBrowser() (*OPCBrowser, error) + func (s *OPCServer) Disconnect() error + func (s *OPCServer) GetBandwidth() (uint32, error) + func (s *OPCServer) GetBuildNumber() (uint16, error) + func (s *OPCServer) GetClientName() string + func (s *OPCServer) GetCurrentTime() (time.Time, error) + func (s *OPCServer) GetErrorString(errorCode int32) (string, error) + func (s *OPCServer) GetItemProperties(itemID string, propertyIDs []uint32) (data []interface{}, itemErrors []error, err error) + func (s *OPCServer) GetLastUpdateTime() (time.Time, error) + func (s *OPCServer) GetLocaleID() (uint32, error) + func (s *OPCServer) GetMajorVersion() (uint16, error) + func (s *OPCServer) GetMinorVersion() (uint16, error) + func (s *OPCServer) GetOPCGroups() *OPCGroups + func (s *OPCServer) GetServerName() string + func (s *OPCServer) GetServerNode() string + func (s *OPCServer) GetServerState() (com.OPCServerState, error) + func (s *OPCServer) GetStartTime() (time.Time, error) + func (s *OPCServer) GetVendorInfo() (string, error) + func (s *OPCServer) LookupItemIDs(itemID string, propertyIDs []uint32) ([]string, []error, error) + func (s *OPCServer) QueryAvailableLocaleIDs() ([]uint32, error) + func (s *OPCServer) QueryAvailableProperties(itemID string) (pPropertyIDs []uint32, ppDescriptions []string, ppvtDataTypes []uint16, ...) + func (s *OPCServer) RegisterServerShutDown(ch chan string) error + func (s *OPCServer) SetClientName(clientName string) error + func (s *OPCServer) SetLocaleID(localeID uint32) error + type OPCWrapperError struct — windows/amd64 + Err error + Info string + func (e *OPCWrapperError) Error() string + func (e *OPCWrapperError) Unwrap() error + type PropertyDescription struct — windows/amd64 + AccessRights int16 + DataType int16 + Description string + PropertyID int32 + type ReadCompleteCallBackData struct — windows/amd64 + Errors []error + GroupHandle uint32 + ItemClientHandles []uint32 + MasterErr error + MasterQuality int32 + Qualities []uint16 + TimeStamps []time.Time + TransID uint32 + Values []interface{} + type ServerInfo struct — windows/amd64 + ClsID *windows.GUID + ClsStr string + ProgID string + VerIndProgID string + func GetOPCServers(node string) ([]*ServerInfo, error) + type ShutdownEventReceiver struct — windows/amd64 + func NewShutdownEventReceiver() *ShutdownEventReceiver + func (er *ShutdownEventReceiver) AddReceiver(ch chan string) + type ShutdownEventReceiverVtbl struct — windows/amd64 + type WriteCompleteCallBackData struct — windows/amd64 + Errors []error + GroupHandle uint32 + ItemClientHandles []uint32 + MasterErr error + TransID uint32