topic

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() topic.TopicClient

func Init

func Init(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger)

func InitWithSD

func InitWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger)

func MakeGetTopicEndpoint

func MakeGetTopicEndpoint(f topic.TopicClient) endpoint.Endpoint

func NewTopicClient

func NewTopicClient(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger) topic.TopicClient

func NewTopicClientWithSD

func NewTopicClientWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger) topic.TopicClient

func TopicFactory

func TopicFactory(makeEndpoint func(f topic.TopicClient) endpoint.Endpoint, tracer stdopentracing.Tracer, logger log.Logger) sd.Factory

Todo: use connect pool, and reference counting to one connection.

Types

type TopicClient

type TopicClient struct {
	GetTopicEndpoint endpoint.Endpoint
}

func (*TopicClient) GetTopic

Jump to

Keyboard shortcuts

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