Skip to content

Commit

Permalink
formatting and linter checks
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Jan 15, 2023
1 parent 02fa2da commit 218a2b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ type Session struct {
// that the server sent in Create Session Response. The default PolicyID
// "Anonymous" wii be set if it's missing in response.
//
// See Part 4, 5.6.2
// # See Part 4, 5.6.2
//
// Note: Starting with v0.5 this method will require a context
// and the corresponding XXXWithContext(ctx) method will be removed.
Expand Down Expand Up @@ -777,7 +777,7 @@ func anonymousPolicyID(endpoints []*ua.EndpointDescription) string {
// the client already has a session it will be closed. To retain the current
// session call DetachSession.
//
// See Part 4, 5.6.3
// # See Part 4, 5.6.3
//
// Note: Starting with v0.5 this method will require a context
// and the corresponding XXXWithContext(ctx) method will be removed.
Expand Down Expand Up @@ -860,7 +860,7 @@ func (c *Client) ActivateSessionWithContext(ctx context.Context, s *Session) err

// CloseSession closes the current session.
//
// See Part 4, 5.6.4
// # See Part 4, 5.6.4
//
// Note: Starting with v0.5 this method will require a context
// and the corresponding XXXWithContext(ctx) method will be removed.
Expand Down Expand Up @@ -1153,7 +1153,7 @@ func (c *Client) BrowseNextWithContext(ctx context.Context, req *ua.BrowseNextRe

// RegisterNodes registers node ids for more efficient reads.
//
// Part 4, Section 5.8.5
// # Part 4, Section 5.8.5
//
// Note: Starting with v0.5 this method will require a context
// and the corresponding XXXWithContext(ctx) method will be removed.
Expand All @@ -1175,7 +1175,7 @@ func (c *Client) RegisterNodesWithContext(ctx context.Context, req *ua.RegisterN

// UnregisterNodes unregisters node ids previously registered with RegisterNodes.
//
// Part 4, Section 5.8.6
// # Part 4, Section 5.8.6
//
// Note: Starting with v0.5 this method will require a context
// and the corresponding XXXWithContext(ctx) method will be removed.
Expand Down
4 changes: 2 additions & 2 deletions cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ func Enums(dict *TypeDictionary) []Type {
func ExtObjects(dict *TypeDictionary) []Type {
baseTypes := map[string]*Type{
// Extensionobject is the base class for all extension objects.
"ua:ExtensionObject": &Type{Name: "ExtensionObject"},
"ua:ExtensionObject": {Name: "ExtensionObject"},

// DataTypeDefinition is referenced in Opc.Ua.Types.bsd but not defined there
// From what I can tell it is an abstract base class without any fields.
// We define it here to be able to generate code for derived classes.
"tns:DataTypeDefinition": &Type{Name: "DataTypeDefinition"},
"tns:DataTypeDefinition": {Name: "DataTypeDefinition"},
}

var objects []Type
Expand Down

0 comments on commit 218a2b7

Please sign in to comment.