config

package
v1.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpensearchClientConfig

type OpensearchClientConfig struct {
	Host         string `validate:"required" viperEnv:"ELASTIC_HOST"`
	Port         int    `validate:"required,min=1,max=65535" viperEnv:"ELASTIC_API_PORT"`
	Https        bool   `viperEnv:"ELASTIC_HTTPS"`
	AuthUsername string `validate:"required" viperEnv:"ELASTIC_AUTH_USER"`
	AuthPassword string `validate:"required" viperEnv:"ELASTIC_AUTH_PASS"`
	AuthMethod   string `validate:"required" viperEnv:"ELASTIC_AUTH_METHOD"`
}

func ReadOpensearchClientConfig

func ReadOpensearchClientConfig() (OpensearchClientConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL