kafka_endpoints

package
v0.0.0-...-fc1c416 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeConsumerEndpoint

func MakeConsumerEndpoint(svc pb.KafkaServiceServer) endpoint.Endpoint

func MakeProducerEndpoint

func MakeProducerEndpoint(svc pb.KafkaServiceServer) endpoint.Endpoint

Types

type Endpoints

type Endpoints struct {
	ConsumerEndpoint endpoint.Endpoint

	ProducerEndpoint endpoint.Endpoint

	ConsumerStreamEndpoint StreamEndpoint
}

func MakeEndpoints

func MakeEndpoints(svc pb.KafkaServiceServer) Endpoints

func (*Endpoints) Consumer

func (e *Endpoints) Consumer(ctx context.Context, in *pb.ConsumerRequest) (*pb.ConsumerResponse, error)

func (*Endpoints) ConsumerStream

func (*Endpoints) Producer

func (e *Endpoints) Producer(ctx context.Context, in *pb.ProducerRequest) (*pb.ProducerResponse, error)

type StreamEndpoint

type StreamEndpoint func(server interface{}, req interface{}) (err error)

func MakeConsumerStreamEndpoint

func MakeConsumerStreamEndpoint(svc pb.KafkaServiceServer) StreamEndpoint

Jump to

Keyboard shortcuts

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