couchbase

package
v0.0.0-...-81da00b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 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 Node

type Node struct {
	Hostname           string          `json:"hostname"`
	Version            cbvalue.Version `json:"version"`
	AlternateAddresses map[string]struct {
		Hostname string         `json:"hostname"`
		Ports    map[string]int `json:"ports"`
	} `json:"alternateAddresses,omitempty"`
}

func (Node) ResolveHostPort

func (n Node) ResolveHostPort(secure bool) (string, int, error)

type PoolsDefault

type PoolsDefault struct {
	ClusterName string `json:"clusterName"`
	Nodes       []Node `json:"nodes"`
}

func FetchCouchbaseClusterInfo

func FetchCouchbaseClusterInfo(scheme, hostname string, port int, username, password string) (*PoolsDefault,
	error)

Jump to

Keyboard shortcuts

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