Documentation ¶
Index ¶
- func FeedFactory(makeEndpoint func(f feed.FeedClient) endpoint.Endpoint, ...) sd.Factory
- func GetClient() feed.FeedClient
- func Init(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger)
- func InitWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger)
- func MakeCreateFeedEndpoint(f feed.FeedClient) endpoint.Endpoint
- func MakeGetFeedsEndpoint(f feed.FeedClient) endpoint.Endpoint
- func NewFeedClient(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger) feed.FeedClient
- func NewFeedClientWithSD(sdClient etcd.Client, tracer stdopentracing.Tracer, logger log.Logger) feed.FeedClient
- type FeedClient
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 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 ¶
func (*FeedClient) CreateFeed ¶
func (f *FeedClient) CreateFeed(ctx context.Context, in *feed.FeedRecord, opts ...grpc.CallOption) (*feed.OkResponse, error)
func (*FeedClient) GetFeeds ¶
func (f *FeedClient) GetFeeds(ctx context.Context, in *feed.GetFeedsRequest, opts ...grpc.CallOption) (*feed.GetFeedsResponse, error)
Click to show internal directories.
Click to hide internal directories.