Skip to content

Commit

Permalink
refactor(opcua): simplify pascal string
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 1, 2023
1 parent 5bf72f2 commit 93d7565
Show file tree
Hide file tree
Showing 7 changed files with 394 additions and 73 deletions.
6 changes: 4 additions & 2 deletions plc4go/internal/opcua/SecureChannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ var (
DEFAULT_CONNECTION_LIFETIME = uint32(36000000)
)

//go:generate go run ../../tools/plc4xgenerator/gen.go -type=SecureChannel
type SecureChannel struct {
sessionName string
clientNonce []byte
requestHandleGenerator atomic.Uint32
policyId readWriteModel.PascalString
tokenType readWriteModel.UserTokenType
tokenType readWriteModel.UserTokenType `stringer:"true"`
discovery bool
certFile string
keyStoreFile string
Expand Down Expand Up @@ -124,7 +125,8 @@ type SecureChannel struct {
maxMessageSize int
endpoints []string
senderSequenceNumber atomic.Int32
log zerolog.Logger

log zerolog.Logger `ignore:"true"`
}

func NewSecureChannel(log zerolog.Logger, ctx DriverContext, configuration Configuration) *SecureChannel {
Expand Down
328 changes: 328 additions & 0 deletions plc4go/internal/opcua/SecureChannel_plc4xgen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 93d7565

Please sign in to comment.