client_v7.go ×10

Frontier kind: Code frontier

unlabeled · c_83771ad37888

2 tests · 2026 LOC · 82 files · introduces 0 tests · 177 LOC · 6 files

Introduces — evidence that enters the hierarchy at this concept

Code
26 ranges177 lines · 6 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
275 ranges2026 lines · 82 files · Browse complete extent
All tests (intent)
2 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationhandler.go ×4 · 61 introduced LOChandler.go ×4handler.go ×2 · 16 introduced LOChandler.go ×2noop_moving_window_average.go ×1 · 2 introduced LOCnoop_moving_window_avera…search_attribute.go ×12 · 121 introduced LOCsearch_attribute.go ×12key.go ×1 · 6 introduced LOCkey.go ×1priority.go ×1 · 3 introduced LOCpriority.go ×1setting_gen.go ×51 · 335 introduced LOCsetting_gen.go ×51grpc_resolver.go ×2 · 7 introduced LOCgrpc_resolver.go ×2predicates.pb.go ×21 · 54 introduced LOCpredicates.pb.go ×21service.pb.go ×2 · 342 introduced LOCservice.pb.go ×2message.pb.go ×2 · 20 introduced LOCmessage.pb.go ×2constants.go ×1 · 6 introduced LOCconstants.go ×1task.pb.go ×1 · 3 introduced LOCtask.pb.go ×1message.pb.go ×2 · 442 introduced LOCmessage.pb.go ×2defs.go ×5 · 91 introduced LOCdefs.go ×5zap_logger.go ×1 · 6 introduced LOCzap_logger.go ×1zap_logger.go ×1 · 1 introduced LOCzap_logger.go ×1zap_logger.go ×4 · 12 introduced LOCzap_logger.go ×4zap_tag.go ×1 · 6 introduced LOCzap_tag.go ×1zap_logger.go ×2 · 33 introduced LOCzap_logger.go ×2zap_logger.go ×1 · 2 introduced LOCzap_logger.go ×1tags.go ×1 · 6 introduced LOCtags.go ×1zap_logger.go ×1 · 7 introduced LOCzap_logger.go ×1tags.go ×9 · 37 introduced LOCtags.go ×9message.pb.go ×2 · 49 introduced LOCmessage.pb.go ×2cluster.pb.go ×2 · 200 introduced LOCcluster.pb.go ×2wildcard.go ×1 · 2 introduced LOCwildcard.go ×1wildcard.go ×4 · 14 introduced LOCwildcard.go ×4retrypolicy.go ×3 · 19 introduced LOCretrypolicy.go ×3message.pb.go ×2 · 20 introduced LOCmessage.pb.go ×2payload.go ×1 · 3 introduced LOCpayload.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/adminservice/v1/request_response.pb.go · 6661 LOCv1/request_response.pb.g…go.temporal.io/server/api/adminservice/v1/service.pb.go · 297 LOCv1/service.pb.gogo.temporal.io/server/api/chasm/v1/message.pb.go · 230 LOCv1/message.pb.gogo.temporal.io/server/api/clock/v1/message.pb.go · 217 LOCv1/message.pb.gogo.temporal.io/server/api/cluster/v1/message.pb.go · 366 LOCv1/message.pb.gogo.temporal.io/server/api/common/v1/api_category.pb.go · 230 LOCv1/api_category.pb.gogo.temporal.io/server/api/common/v1/dlq.pb.go · 319 LOCv1/dlq.pb.gogo.temporal.io/server/api/deployment/v1/message.pb.go · 4650 LOCv1/message.pb.gogo.temporal.io/server/api/enums/v1/cluster.pb.go · 233 LOCv1/cluster.pb.gogo.temporal.io/server/api/enums/v1/common.pb.go · 288 LOCv1/common.pb.gogo.temporal.io/server/api/enums/v1/dlq.pb.go · 211 LOCv1/dlq.pb.gogo.temporal.io/server/api/enums/v1/fairness_state.pb.go · 147 LOCv1/fairness_state.pb.gogo.temporal.io/server/api/enums/v1/nexus.pb.go · 182 LOCv1/nexus.pb.gogo.temporal.io/server/api/enums/v1/predicate.pb.go · 194 LOCv1/predicate.pb.gogo.temporal.io/server/api/enums/v1/replication.pb.go · 338 LOCv1/replication.pb.gogo.temporal.io/server/api/enums/v1/task.pb.go · 480 LOCv1/task.pb.gogo.temporal.io/server/api/enums/v1/workflow.pb.go · 299 LOCv1/workflow.pb.gogo.temporal.io/server/api/enums/v1/workflow_task_type.pb.go · 148 LOCv1/workflow_task_type.pb…go.temporal.io/server/api/errordetails/v1/message.pb.go · 649 LOCv1/message.pb.gogo.temporal.io/server/api/health/v1/message.pb.go · 324 LOCv1/message.pb.gogo.temporal.io/server/api/history/v1/message.pb.go · 522 LOCv1/message.pb.gogo.temporal.io/server/api/historyservice/v1/request_response.pb.go · 12003 LOCv1/request_response.pb.g…go.temporal.io/server/api/historyservice/v1/service.pb.go · 452 LOCv1/service.pb.gogo.temporal.io/server/api/matchingservice/v1/request_response.pb.go · 6878 LOCv1/request_response.pb.g…go.temporal.io/server/api/matchingservice/v1/service.pb.go · 274 LOCv1/service.pb.gogo.temporal.io/server/api/metrics/v1/message.pb.go · 128 LOCv1/message.pb.gogo.temporal.io/server/api/namespace/v1/message.pb.go · 138 LOCv1/message.pb.gogo.temporal.io/server/api/persistence/v1/chasm.pb.go · 1215 LOCv1/chasm.pb.gogo.temporal.io/server/api/persistence/v1/chasm_visibility.pb.go · 170 LOCv1/chasm_visibility.pb.g…go.temporal.io/server/api/persistence/v1/cluster_metadata.pb.go · 313 LOCv1/cluster_metadata.pb.g…go.temporal.io/server/api/persistence/v1/executions.pb.go · 5768 LOCv1/executions.pb.gogo.temporal.io/server/api/persistence/v1/history_tree.pb.go · 298 LOCv1/history_tree.pb.gogo.temporal.io/server/api/persistence/v1/hsm.pb.go · 929 LOCv1/hsm.pb.gogo.temporal.io/server/api/persistence/v1/namespaces.pb.go · 560 LOCv1/namespaces.pb.gogo.temporal.io/server/api/persistence/v1/nexus.pb.go · 509 LOCv1/nexus.pb.gogo.temporal.io/server/api/persistence/v1/predicates.go-helpers.pb.go · 413 LOCv1/predicates.go-helpers…go.temporal.io/server/api/persistence/v1/predicates.pb.go · 864 LOCv1/predicates.pb.gogo.temporal.io/server/api/persistence/v1/queue_metadata.pb.go · 129 LOCv1/queue_metadata.pb.gogo.temporal.io/server/api/persistence/v1/queues.pb.go · 641 LOCv1/queues.pb.gogo.temporal.io/server/api/persistence/v1/task_queues.pb.go · 924 LOCv1/task_queues.pb.gogo.temporal.io/server/api/persistence/v1/tasks.pb.go · 870 LOCv1/tasks.pb.gogo.temporal.io/server/api/persistence/v1/update.pb.go · 455 LOCv1/update.pb.gogo.temporal.io/server/api/persistence/v1/workflow_mutable_state.pb.go · 560 LOCv1/workflow_mutable_stat…go.temporal.io/server/api/replication/v1/message.pb.go · 2481 LOCv1/message.pb.gogo.temporal.io/server/api/taskqueue/v1/message.pb.go · 1363 LOCv1/message.pb.gogo.temporal.io/server/api/token/v1/message.pb.go · 809 LOCv1/message.pb.gogo.temporal.io/server/api/visibilityservice/v1/request_response.pb.go · 426 LOCv1/request_response.pb.g…go.temporal.io/server/api/workflow/v1/message.pb.go · 302 LOCv1/message.pb.gogo.temporal.io/server/chasm/library.go · 60 LOCchasm/library.gogo.temporal.io/server/chasm/registrable_component.go · 233 LOCchasm/registrable_compon…go.temporal.io/server/chasm/search_attribute.go · 525 LOCchasm/search_attribute.g…go.temporal.io/server/common/aggregate/noop_moving_window_average.go · 13 LOCaggregate/noop_moving_wi…go.temporal.io/server/common/backoff/retrypolicy.go · 347 LOCbackoff/retrypolicy.gogo.temporal.io/server/common/build/build.go · 56 LOCbuild/build.gogo.temporal.io/server/common/dynamicconfig/collection.go · 779 LOCdynamicconfig/collection…go.temporal.io/server/common/dynamicconfig/deepcopy.go · 78 LOCdynamicconfig/deepcopy.g…go.temporal.io/server/common/dynamicconfig/gradual_change.go · 196 LOCdynamicconfig/gradual_ch…go.temporal.io/server/common/dynamicconfig/key.go · 21 LOCdynamicconfig/key.gogo.temporal.io/server/common/dynamicconfig/registry.go · 44 LOCdynamicconfig/registry.g…go.temporal.io/server/common/dynamicconfig/setting_gen.go · 1972 LOCdynamicconfig/setting_ge…go.temporal.io/server/common/dynamicconfig/shared_structure.go · 69 LOCdynamicconfig/shared_str…go.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/log/tag/zap_tag.go · 242 LOCtag/zap_tag.gogo.temporal.io/server/common/log/zap_logger.go · 318 LOClog/zap_logger.gogo.temporal.io/server/common/membership/grpc_resolver.go · 169 LOCmembership/grpc_resolver…go.temporal.io/server/common/metrics/defs.go · 76 LOCmetrics/defs.gogo.temporal.io/server/common/metrics/defs_base.go · 30 LOCmetrics/defs_base.gogo.temporal.io/server/common/metrics/noop_impl.go · 58 LOCmetrics/noop_impl.gogo.temporal.io/server/common/metrics/option.go · 21 LOCmetrics/option.gogo.temporal.io/server/common/metrics/registry.go · 75 LOCmetrics/registry.gogo.temporal.io/server/common/payload/payload.go · 127 LOCpayload/payload.gogo.temporal.io/server/common/persistence/noop_health_signal_aggregator.go · 31 LOCpersistence/noop_health_…go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/client_factory.go · 35 LOCclient/client_factory.gogo.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/client_v7.go · 451 LOCclient/client_v7.gogo.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/config.go · 106 LOCclient/config.gogo.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/logger.go · 33 LOCclient/logger.gogo.temporal.io/server/common/searchattribute/sadefs/constants.go · 396 LOCsadefs/constants.gogo.temporal.io/server/common/tasks/priority.go · 81 LOCtasks/priority.gogo.temporal.io/server/common/util/wildcard.go · 50 LOCutil/wildcard.gogo.temporal.io/server/schema/embed.go · 66 LOCschema/embed.gogo.temporal.io/server/service/history/tasks/key.go · 144 LOCtasks/key.gogo.temporal.io/server/tools/elasticsearch/handler.go · 242 LOCelasticsearch/handler.gogo.temporal.io/server/tools/elasticsearch/main.go · 213 LOCelasticsearch/main.gogo.temporal.io/server/tools/elasticsearch/tasks.go · 210 LOCelasticsearch/tasks.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestTSCBWithDynamicSettings · introduced test · go.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsTestTSCBWithDynamicSetti…TestDeepCopy_OtherReferenceTypes_Nil · introduced test · go.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_NilTestDeepCopy_OtherRefere…TestMutexMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestMutexMapBaggageTestMutexMapBaggageTestSyncMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestSyncMapBaggageTestSyncMapBaggageTestAPIPrioritiesOrdered · introduced test · go.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedTestAPIPrioritiesOrderedTestAPIToPriorityMapping · introduced test · go.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingTestAPIToPriorityMappingTestPingError · introduced test · go.temporal.io/server/tools/elasticsearch/TestMainTestSuite/TestPingErrorTestPingErrorTestSetupSchemaError · introduced test · go.temporal.io/server/tools/elasticsearch/TestMainTestSuite/TestSetupSchemaErrorTestSetupSchemaErrorFocused concept · client_v7.go ×10 · 177 introduced LOCclient_v7.go ×10

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

6 files ranked by introduced lines: 177 introduced LOC across 26 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/tools/elasticsearch/main.go 102 introduced LOC · 3 ranges

Open complete file

32
33 // root handler for all cli commands
34 > func cliHandler(c *cli.Context, handler func(c *cli.Context, logger log.Logger) error, logger log.Logger) { main.go
35 > quiet := c.GlobalBool(commonschema.CLIOptQuiet)
36 > err := handler(c, logger)
37 > if err != nil && !quiet {
38 > osExit(1)
39 > }
40 }
41
42 // BuildCLIOptions builds the options for cli
43 > func BuildCLIOptions() *cli.App { main.go
44 >
45 > app := cli.NewApp()
46 > app.Name = "temporal-elasticsearch-tool"
47 > app.Usage = "Command line tool for temporal elasticsearch operations (EXPERIMENTAL)"
48 > app.Version = "0.0.1"
49 >
50 > logger := log.NewCLILogger()
51 >
52 > app.Flags = []cli.Flag{
53 > cli.StringFlag{
54 > Name: commonschema.CLIFlagEndpoint,
55 > Value: "http://127.0.0.1:9200",
56 > Usage: "hostname or ip address of elasticsearch server",
57 > EnvVar: "ES_SERVER",
58 > },
59 > cli.StringFlag{
60 > Name: commonschema.CLIFlagUser,
61 > Value: "",
62 > Usage: "username for elasticsearch or aws_access_key_id if using static aws credentials",
63 > EnvVar: "ES_USER",
64 > },
65 > cli.StringFlag{
66 > Name: commonschema.CLIFlagPassword,
67 > Value: "",
68 > Usage: "password for elasticsearch or aws_secret_access_key if using static aws credentials",
69 > EnvVar: "ES_PWD",
70 > },
71 > cli.StringFlag{
72 > Name: CLIFlagAWSCredentials,
73 > Value: "",
74 > Usage: "AWS credentials provider (supported ['static', 'environment', 'aws-sdk-default'])",
75 > EnvVar: "AWS_CREDENTIALS",
76 > },
77 > cli.StringFlag{
78 > Name: CLIFlagAWSToken,
79 > Value: "",
80 > Usage: "AWS sessiontoken for use with 'static' AWS credentials provider",
81 > EnvVar: "AWS_SESSION_TOKEN",
82 > },
83 > cli.BoolFlag{
84 > Name: commonschema.CLIOptQuiet,
85 > Usage: "don't log errors to stderr",
86 > },
87 > cli.BoolFlag{
88 > Name: commonschema.CLIFlagEnableTLS,
89 > Usage: "enable TLS for elasticsearch connection",
90 > EnvVar: "ES_TLS",
91 > },
92 > cli.StringFlag{
93 > Name: commonschema.CLIFlagTLSCertFile,
94 > Value: "",
95 > Usage: "path to TLS certificate file (tls must be enabled)",
96 > EnvVar: "ES_TLS_CERT_FILE",
97 > },
98 > cli.StringFlag{
99 > Name: commonschema.CLIFlagTLSKeyFile,
100 > Value: "",
101 > Usage: "path to TLS key file (tls must be enabled)",
102 > EnvVar: "ES_TLS_KEY_FILE",
103 > },
104 > cli.StringFlag{
105 > Name: commonschema.CLIFlagTLSCaFile,
106 > Value: "",
107 > Usage: "path to TLS CA certificate file (tls must be enabled)",
108 > EnvVar: "ES_TLS_CA_FILE",
109 > },
110 > cli.BoolFlag{
111 > Name: commonschema.CLIFlagTLSDisableHostVerification,
112 > Usage: "disable TLS host name verification (tls must be enabled)",
113 > EnvVar: "ES_TLS_DISABLE_HOST_VERIFICATION",
114 > },
115 > cli.StringFlag{
116 > Name: commonschema.CLIFlagTLSHostName,
117 > Value: "",
118 > Usage: "TLS server name for host name verification (tls must be enabled)",
119 > EnvVar: "ES_TLS_SERVER_NAME",
120 > },
121 > }
122 >
123 > app.Commands = []cli.Command{
124 > {
125 > Name: "setup-schema",
126 > Usage: "setup elasticsearch cluster settings and index template",
127 > Flags: []cli.Flag{
128 > cli.BoolFlag{
129 > Name: CLIFlagFailSilently,
130 > Usage: "fail silently on HTTP errors",
131 > },
132 > cli.BoolFlag{
133 > Name: CLIFlagSkipClusterSettings,
134 > Usage: "skip setting up cluster settings",
135 > },
136 > },
137 > Action: func(c *cli.Context) error {
138 cliHandler(c, setupSchema, logger)
139 return nil
210 }
211
212 > return app main.go
213 }
go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/client_v7.go 43 introduced LOC · 10 ranges

Open complete file

28
29 // newClient create a ES client
30 > func newClient(cfg *Config, httpClient *http.Client, logger log.Logger) (*clientImpl, error) { client_v7.go
31 > var urls []string
32 > if len(cfg.URLs) > 0 {
33 urls = make([]string, len(cfg.URLs))
34 for i, u := range cfg.URLs {
35 urls[i] = u.String()
36 }
37 > } else { client_v7.go
38 > urls = []string{cfg.URL.String()}
39 > }
40 > options := []elastic.ClientOptionFunc{
41 > elastic.SetURL(urls...),
42 > elastic.SetBasicAuth(cfg.Username, cfg.Password),
43 > // Disable healthcheck to prevent blocking client creation (and thus Temporal server startup) if the Elasticsearch is down.
44 > elastic.SetHealthcheck(false),
45 > elastic.SetSniff(cfg.EnableSniff),
46 > elastic.SetRetrier(elastic.NewBackoffRetrier(elastic.NewExponentialBackoff(128*time.Millisecond, 513*time.Millisecond))),
47 > // Critical to ensure decode of int64 won't lose precision.
48 > elastic.SetDecoder(&elastic.NumberDecoder{}),
49 > elastic.SetGzip(!cfg.DisableGzip),
50 > }
51 >
52 > options = append(options, getLoggerOptions(cfg.LogLevel, logger)...)
53 >
54 > if httpClient == nil {
55 > // Check if httpClient is set in config (e.g., AWS HTTP client)
56 > if configHTTPClient := cfg.GetHttpClient(); configHTTPClient != nil {
57 httpClient = configHTTPClient
58 > } else if cfg.TLS != nil && cfg.TLS.Enabled { client_v7.go
59 tlsHttpClient, err := buildTLSHTTPClient(cfg.TLS)
60 if err != nil {
62 }
63 httpClient = tlsHttpClient
64 > } else { client_v7.go
65 > httpClient = http.DefaultClient
66 > }
67 }
68
69 // TODO (alex): Remove this when https://github.com/olivere/elastic/pull/1507 is merged.
70 > if cfg.CloseIdleConnectionsInterval != time.Duration(0) { client_v7.go
71 if cfg.CloseIdleConnectionsInterval < minimumCloseIdleConnectionsInterval {
72 cfg.CloseIdleConnectionsInterval = minimumCloseIdleConnectionsInterval
83 }
84
85 > options = append(options, elastic.SetHttpClient(httpClient)) client_v7.go
86 >
87 > client, err := elastic.NewClient(options...)
88 > if err != nil {
89 return nil, err
90 }
91
92 // Enable healthcheck (if configured) after client is successfully created.
93 > if cfg.EnableHealthcheck { client_v7.go
94 client.Stop()
95 err = elastic.SetHealthcheck(true)(client)
100 }
101
102 > return &clientImpl{ client_v7.go
103 > esClient: client,
104 > url: cfg.URL,
105 > }, nil
106 }
107
350 }
351
352 > func getLoggerOptions(logLevel string, logger log.Logger) []elastic.ClientOptionFunc { client_v7.go
353 > switch {
354 case strings.EqualFold(logLevel, "trace"):
355 return []elastic.ClientOptionFunc{
363 elastic.SetInfoLog(newInfoLogger(logger)),
364 }
365 > case strings.EqualFold(logLevel, "error"), logLevel == "": // Default is to log errors only. client_v7.go
366 > return []elastic.ClientOptionFunc{
367 > elastic.SetErrorLog(newErrorLogger(logger)),
368 > }
369 default:
370 return nil
go.temporal.io/server/tools/elasticsearch/handler.go 22 introduced LOC · 9 ranges

Open complete file

16 )
17
18 > func createClient(cli *cli.Context, logger log.Logger) (esclient.CLIClient, error) { handler.go
19 > cfg, err := parseElasticConfig(cli)
20 > if err != nil {
21 logger.Error("Unable to parse elasticsearch config.", tag.Error(err))
22 return nil, err
23 }
24
25 > if cfg.AWSRequestSigning.Enabled { handler.go
26 awsHTTPClient, err := esclient.NewAwsHttpClient(cfg.AWSRequestSigning)
27 if err != nil {
32 }
33
34 > esClient, err := esclient.NewCLIClient(cfg, logger) handler.go
35 > if err != nil {
36 logger.Error("Unable to create elasticsearch client.", tag.Error(err))
37 return nil, err
38 }
39
40 > return esClient, nil handler.go
41 }
42
96 }
97
98 > func parseElasticConfig(cli *cli.Context) (*esclient.Config, error) { handler.go
99 > cfg := new(esclient.Config)
100 >
101 > u, err := url.Parse(cli.GlobalString(commonschema.CLIOptEndpoint))
102 > if err != nil {
103 return nil, fmt.Errorf("invalid elasticsearch URL %q: %w", cli.GlobalString(commonschema.CLIOptEndpoint), err)
104 }
105
106 > cfg.URL = *u handler.go
107 > cfg.Username = cli.GlobalString(commonschema.CLIOptUser)
108 > cfg.Password = cli.GlobalString(commonschema.CLIOptPassword)
109 > cfg.Version = "v7" // Fixed schema version 7
110 > cfg.Indices = map[string]string{}
111 >
112 > if cli.String(CLIOptVisibilityIndex) != "" {
113 cfg.Indices[esclient.VisibilityAppName] = cli.String(CLIOptVisibilityIndex)
114 }
115
116 > if cli.GlobalString(CLIOptAWSCredentials) != "" { handler.go
117 cfg.AWSRequestSigning.CredentialProvider = cli.GlobalString(CLIOptAWSCredentials)
118 cfg.AWSRequestSigning.Enabled = true
125 }
126
127 > if cli.GlobalBool(commonschema.CLIFlagEnableTLS) { handler.go
128 cfg.TLS = &auth.TLS{
129 Enabled: true,
136 }
137
138 > return cfg, nil handler.go
139 }
140
go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/client_factory.go 4 introduced LOC · 1 range

Open complete file

17 }
18
19 > func NewCLIClient(config *Config, logger log.Logger) (CLIClient, error) { client_factory.go
20 > switch config.Version {
21 > case "v8", "v7", "":
22 > return newClient(config, nil, logger)
23 default:
24 return nil, fmt.Errorf("not supported Elasticsearch version: %v", config.Version)
go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/config.go 3 introduced LOC · 2 ranges

Open complete file

86 }
87
88 > func (cfg *Config) GetHttpClient() *http.Client { config.go
89 > if cfg == nil {
90 return nil
91 }
92 > return cfg.httpClient config.go
93 }
94
go.temporal.io/server/common/persistence/visibility/store/elasticsearch/client/logger.go 3 introduced LOC · 1 range

Open complete file

17 )
18
19 > func newErrorLogger(logger log.Logger) *errorLogger { logger.go
20 > return &errorLogger{logger}
21 > }
22
23 func (l *errorLogger) Printf(format string, v ...any) {