elasticsearchrelation

package
v2.0.0-...-822b922 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

The elasticsearchrelation package implements a Juju elasticsearch relation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Requirer

type Requirer struct {
	// contains filtered or unexported fields
}

Requirer represents the requirer side of an elasticsearch relation.

func (*Requirer) Addresses

func (req *Requirer) Addresses() []string

Addresses returns the addresses of the current elasticsearch servers.

func (*Requirer) Register

func (req *Requirer) Register(r *hook.Registry, relationName string)

Register registers an elasticsearch requirer relation with the given relation name with the given hook registry.

To find out when the host addresses change, register a wildcard ("*") hook.

Jump to

Keyboard shortcuts

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