Skip to content

Commit

Permalink
opensearchapi: add pointInTimeClient to rootClient
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <[email protected]>
  • Loading branch information
Jakob3xD committed Sep 21, 2023
1 parent 52c63a4 commit f1650ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opensearchapi/opensearchapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type Client struct {
IndexTemplate indexTemplateClient
Template templateClient
DataStream dataStreamClient
PointInTime pointInTimeClient
}

// clientInit inits the Client with all sub clients
Expand All @@ -75,6 +76,7 @@ func clientInit(rootClient *opensearch.Client) *Client {
client.IndexTemplate = indexTemplateClient{apiClient: client}
client.Template = templateClient{apiClient: client}
client.DataStream = dataStreamClient{apiClient: client}
client.PointInTime = pointInTimeClient{apiClient: client}

return client
}
Expand Down

0 comments on commit f1650ba

Please sign in to comment.