Skip to content

Commit

Permalink
Comments for new packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Sep 24, 2024
1 parent c19ee2e commit da41ae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/config/nodetreemodel/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

// Package nodetreemodel defines a model for the config using a tree of nodes
package nodetreemodel

import (
Expand Down
4 changes: 3 additions & 1 deletion pkg/config/teeconfig/teeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

// Package teeconfig is a tee of two configs that writes to both but reads from only one
package teeconfig

import (
Expand All @@ -16,12 +17,13 @@ import (
"github.com/DataDog/datadog-agent/pkg/config/model"
)

// teeConfig
// teeConfig is a combination of two configs, both get written to but only baseline is read
type teeConfig struct {
baseline model.Config
compare model.Config
}

// NewTeeConfig constructs a new teeConfig
func NewTeeConfig(baseline, compare model.Config) model.Config {
return &teeConfig{baseline: baseline, compare: compare}
}
Expand Down

0 comments on commit da41ae3

Please sign in to comment.