config

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RefreshTrue    = "true"
	RefreshWaitFor = "wait_for"
	RefreshFalse   = "false"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticsearchConfig

type ElasticsearchConfig struct {
	Refresh                 RefreshOption
	URL, Username, Password string
	InsecureSkipVerify      bool
}

func (ElasticsearchConfig) IsValid

func (c ElasticsearchConfig) IsValid() (e error)

type RefreshOption

type RefreshOption string

RefreshOption is based on https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html

func (RefreshOption) String

func (r RefreshOption) String() string

Jump to

Keyboard shortcuts

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