client

package
v0.0.0-...-58895e1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTProtocolFactory

func NewTProtocolFactory() thrift.TProtocolFactory

func NewTTransport

func NewTTransport(address string) (thrift.TTransport, error)

Types

type ClientConfig

type ClientConfig struct {
	Direct        *Direct
	ServiceCentre *ServiceCentre
}

type Direct

type Direct struct {
	Address string
}

type Finder

type Finder interface {
	Init() error
	Get() (string, error)
}

func NewFinder

func NewFinder(conf *ClientConfig) (Finder, error)

type ServiceCentre

type ServiceCentre struct {
	Servers []string
	Name    string
}

Jump to

Keyboard shortcuts

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