Skip to content

Commit

Permalink
opensearchapi: add scrollClient to rootClient
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
  • Loading branch information
Jakob3xD committed Oct 13, 2023
1 parent a9b4b49 commit f1453aa
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 @@ -55,6 +55,7 @@ type Client struct {
PointInTime pointInTimeClient
Ingest ingestClient
Tasks tasksClient
Scroll scrollClient
}

// clientInit inits the Client with all sub clients
Expand All @@ -81,6 +82,7 @@ func clientInit(rootClient *opensearch.Client) *Client {
client.PointInTime = pointInTimeClient{apiClient: client}
client.Ingest = ingestClient{apiClient: client}
client.Tasks = tasksClient{apiClient: client}
client.Scroll = scrollClient{apiClient: client}

return client
}
Expand Down

0 comments on commit f1453aa

Please sign in to comment.