helpers

package
v0.0.0-...-0c02112 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package helpers provides .env file parser. It is used by integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEnvFile

func ReadEnvFile(path string) (map[string]string, error)

Types

type ElasticsearchSettings

type ElasticsearchSettings struct {
	Endpoint               string
	Username               string
	Password               string
	IndexFlight, IndexNews string
}

type Settings

type Settings struct {
	Sneller       SnellerSettings
	Elasticsearch ElasticsearchSettings
}

func ParseEnvFile

func ParseEnvFile() (*Settings, error)

ParseEnvFile parses .env files used in tests.

type SnellerSettings

type SnellerSettings struct {
	Endpoint               string
	Token                  string
	Database               string
	TableFlight, TableNews string
}

Jump to

Keyboard shortcuts

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