-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add getendpoints, browse, read dto (#40)
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
- Loading branch information
Showing
7 changed files
with
88 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package uamsg | ||
|
||
type BrowseRequest struct { | ||
Header *RequestHeader | ||
View *ViewDescription | ||
RequestedMaxReferencesPerNode uint32 | ||
NodesToBrowse []*BrowseDescription | ||
} | ||
|
||
type ViewDescription struct { | ||
ViewId *NodeId | ||
Timestamp uint64 | ||
ViewVersion uint32 | ||
} | ||
|
||
type BrowseDescription struct { | ||
NodeId *NodeId | ||
BrowseDirection uint32 | ||
ReferenceTypeId *NodeId | ||
IncludeSubtypes bool | ||
NodeClassMask uint32 | ||
ResultMask uint32 | ||
} | ||
|
||
type BrowseResponse struct { | ||
Header *ResponseHeader | ||
Results []*BrowseResult | ||
} | ||
|
||
type BrowseResult struct { | ||
StatusCode *StatusCode | ||
ContinuationPoint []byte | ||
References []*ReferenceDescription | ||
DiagnosticInfos []*DiagnosticInfo | ||
} | ||
|
||
type ReferenceDescription struct { | ||
ReferenceTypeId *NodeId | ||
IsForward bool | ||
NodeId *ExpandedNodeId | ||
BrowseName *QualifiedName | ||
DisplayName *LocalizedText | ||
NodeClass uint32 | ||
TypeDefinition *ExpandedNodeId | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package uamsg | ||
|
||
type GetEndpointsRequest struct { | ||
Header *RequestHeader | ||
EndpointUrl string | ||
LocaleIds []string | ||
ProfileUris []string | ||
} | ||
|
||
type GetEndpointsResponse struct { | ||
Header *ResponseHeader | ||
Endpoints []EndpointDescription | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters