d2

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ClustersPath added in v0.1.1

func ClustersPath(cluster string) string

func EnableD2Logging added in v0.1.1

func EnableD2Logging()

func ServicesPath

func ServicesPath(service string) string

func UrisPath

func UrisPath(uri string) string

Types

type ChildUpdateCallback

type ChildUpdateCallback func(child string, data []byte, err error)

type ChildWatcher

type ChildWatcher struct {
	*zk.Conn
	Root string
	// contains filtered or unexported fields
}

func NewChildWatcher

func NewChildWatcher(conn *zk.Conn, root string, callback ChildUpdateCallback) (*ChildWatcher, error)

func (*ChildWatcher) ChildPath

func (w *ChildWatcher) ChildPath(child string) string

type Cluster added in v0.1.1

type Cluster struct {
	ClusterName         string `json:"clusterName"`
	PartitionProperties struct {
		HashAlgorithm     string `json:"hashAlgorithm"`
		PartitionCount    int    `json:"partitionCount"`
		PartitionKeyRegex string `json:"partitionKeyRegex"`
		PartitionType     string `json:"partitionType"`
	} `json:"partitionProperties"`
}

type FixedClient added in v0.1.1

type FixedClient struct {
	*zk.Conn
	// contains filtered or unexported fields
}

func NewFixedClient added in v0.1.1

func NewFixedClient(name string, conn *zk.Conn) (c *FixedClient, err error)

func (*FixedClient) GetHostnameForQuery added in v0.1.1

func (c *FixedClient) GetHostnameForQuery(query string) (*url.URL, error)

type OnceWg

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

func (*OnceWg) Done

func (w *OnceWg) Done()

func (*OnceWg) Wait

func (w *OnceWg) Wait()

type Service

type Service struct {
	Path        string
	ServiceName string `json:"serviceName"`
	ClusterName string `json:"clusterName"`
}

type Uri

type Uri struct {
	Weights       map[url.URL]float64
	ClusterName   string
	Properties    map[url.URL]UriProperty
	PartitionDesc map[url.URL]map[int]float64
}

func (*Uri) UnmarshalJSON

func (u *Uri) UnmarshalJSON(data []byte) error

type UriProperty

type UriProperty struct {
	AppName    string `json:"com.linkedin.app.name"`
	AppVersion string `json:"com.linkedin.app.version"`
}

Jump to

Keyboard shortcuts

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