connector

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CAFE_CONFIG_KEY = "nselastic"

Variables

View Source
var CafeConfig = cafe.SubSchema(
	CAFE_CONFIG_KEY,
	cafe.Schema{
		"ELASTICSEARCH_HOST":     cafe.String("ELASTICSEARCH_HOST").Require(),
		"ELASTICSEARCH_USERNAME": cafe.String("ELASTICSEARCH_USERNAME"),
		"ELASTICSEARCH_PASSWORD": cafe.String("ELASTICSEARCH_PASSWORD"),
	},
)

Functions

func Init

func Init(
	subschema *cafe.Cafe,
) (conn nselastic.Connector, err error)

func New

func New(host, username, password string) nselastic.Connector

Types

This section is empty.

Jump to

Keyboard shortcuts

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