Skip to content

Commit

Permalink
feat: add client config to client field
Browse files Browse the repository at this point in the history
Signed-off-by: goflutterjava <goflutterjava@gmail.com>
  • Loading branch information
goflutterjava committed Sep 14, 2024
1 parent dadcc67 commit 354fc3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opcua/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ type ClientConfig struct {
}

type Client struct {
config *ClientConfig
logger *slog.Logger
}

func NewClient(config *ClientConfig) *Client {
client := &Client{
config: config,
logger: config.logger,
}
return client
Expand Down

0 comments on commit 354fc3c

Please sign in to comment.