galera

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigOptionFunc

type ConfigOptionFunc func(*Recipient) error

func ClusterAddressesSetter

func ClusterAddressesSetter(v ...string) ConfigOptionFunc

func ClusterNameSetter

func ClusterNameSetter(v string) ConfigOptionFunc

func MinimalClusterSetter

func MinimalClusterSetter(first, second, third string) ConfigOptionFunc

func ThisNodeSetter

func ThisNodeSetter(host, name string) ConfigOptionFunc

func WsrepProviderOptionsSetter

func WsrepProviderOptionsSetter(v ...string) ConfigOptionFunc

type Recipient

type Recipient struct {
	ClusterName                                  string
	ClusterAddresses, WsrepProviderOptions       string
	FirstNodeHost, SecondNodeHost, ThirdNodeHost string
	ThisNodeHost, ThisNodeName                   string
	DisableClusterAddresses                      bool
}

func NewRecipient

func NewRecipient(disableClusterAddresses bool, options ...ConfigOptionFunc) (*Recipient, error)

func (*Recipient) Generate

func (recipe *Recipient) Generate(path string) error

func (*Recipient) Parse

func (recipe *Recipient) Parse() (*bytes.Buffer, error)

Jump to

Keyboard shortcuts

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