Skip to content

Commit

Permalink
docs: enrich container comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Sep 25, 2024
1 parent 2728290 commit 17e83cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ const (
scheme = "http"
)

// EtcdContainer represents the etcd container type used in the module
// EtcdContainer represents the etcd container type used in the module. It can be used to create a single-node instance or a cluster.
// For the cluster, the first node creates the cluster and the other nodes join it as child nodes.
type EtcdContainer struct {
testcontainers.Container
ClusterToken string
childNodes []*EtcdContainer
// childNodes contains the child nodes of the current node, forming a cluster
childNodes []*EtcdContainer
}

// Run creates an instance of the etcd container type
Expand Down

0 comments on commit 17e83cc

Please sign in to comment.