feed

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 FeedFactory

func FeedFactory(makeEndpoint func(f feed.FeedClient) endpoint.Endpoint, tracer stdopentracing.Tracer, logger log.Logger) sd.Factory

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

func GetClient

func GetClient() feed.FeedClient

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 MakeCreateFeedEndpoint

func MakeCreateFeedEndpoint(f feed.FeedClient) endpoint.Endpoint

func MakeGetFeedsEndpoint

func MakeGetFeedsEndpoint(f feed.FeedClient) endpoint.Endpoint

func NewFeedClient

func NewFeedClient(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger) feed.FeedClient

func NewFeedClientWithSD

func NewFeedClientWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger) feed.FeedClient

Types

type FeedClient

type FeedClient struct {
	GetFeedsEndpoint   endpoint.Endpoint
	CreateFeedEndpoint endpoint.Endpoint
}

func (*FeedClient) CreateFeed

func (f *FeedClient) CreateFeed(ctx context.Context, in *feed.FeedRecord, opts ...grpc.CallOption) (*feed.OkResponse, error)

func (*FeedClient) GetFeeds

Jump to

Keyboard shortcuts

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