cloud

package
v1.0.0-preview.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Public  string
	Private string
}

func NewAddress

func NewAddress(public string, private string) Address

func (Address) String

func (a Address) String() string

type AddressProvider

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

func NewAddressProvider

func NewAddressProvider(dc *DiscoveryClient, addrs []Address) (*AddressProvider, error)

func (*AddressProvider) Addresses

func (a *AddressProvider) Addresses(refresh bool) []pubcluster.Address

type AddressTranslator

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

func NewAddressTranslator

func NewAddressTranslator(dc *DiscoveryClient, addrs []Address) *AddressTranslator

func (*AddressTranslator) Translate

func (*AddressTranslator) TranslateMember

func (a *AddressTranslator) TranslateMember(ctx context.Context, member *pubcluster.MemberInfo) (addr pubcluster.Address, err error)

type DiscoveryClient

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

func NewDiscoveryClient

func NewDiscoveryClient(config *cluster.HazelcastCloudConfig, logger logger.Logger) *DiscoveryClient

func (*DiscoveryClient) DiscoverNodes

func (c *DiscoveryClient) DiscoverNodes(ctx context.Context) ([]Address, error)

Jump to

Keyboard shortcuts

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