config

package
v0.0.0-...-f34691d Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Elasticsearch ElasticsearchConfig `yaml:"elasticsearch"`
}

func NewConfig

func NewConfig(configPath string) (*Config, error)

type ElasticsearchConfig

type ElasticsearchConfig struct {
	Host                string                 `yaml:"host"`
	MigrationsIndexName string                 `yaml:"migrations_index_name"`
	Username            string                 `yaml:"username"`
	Password            string                 `yaml:"password"`
	TLS                 ElasticsearchTLSConfig `yaml:"tls"`
}

type ElasticsearchTLSConfig

type ElasticsearchTLSConfig struct {
	CertFile string `yaml:"cert_file"`
	KeyFile  string `yaml:"key_file"`
}

Jump to

Keyboard shortcuts

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