proxies

package
v0.0.0-...-9d9fbe0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageConsumer

type MessageConsumer struct {
	// contains filtered or unexported fields
}

MessageConsumer consumes events from an RPC kafka topic, en convert them into messages.

func NewMessageConsumer

func NewMessageConsumer(
	kafkaConfig *kafka.ConfigMap,
	topic string,
	messageHandler func(message messages.Message)) *MessageConsumer

NewMessageConsumer creates a new MessageConsumer.

An MessageConsumer is created using a kafka configuration map, a topic name a message handler handling converted messages from events and possibly a function indicating to close the consumer.

func (*MessageConsumer) Close

func (c *MessageConsumer) Close()

func (*MessageConsumer) Start

func (c *MessageConsumer) Start()

Start creates a Kafka consumer and starts polling the consumer.

The events received from the consumer are send to the messageHandler function until either the isClosedFn function returns true, or the process is exited.

type RequestProxy

type RequestProxy struct {
	pb.UnimplementedChunkStoreServiceServer
	// contains filtered or unexported fields
}

RequestProxy converts requests from a caller into the associated Kafka messages, and waits for Kafka responses.

func NewRequestProxy

func NewRequestProxy(config *config.RequestProxyConfig) (*RequestProxy, error)

func (*RequestProxy) AddTableFiles

func (*RequestProxy) Close

func (p *RequestProxy) Close()

func (*RequestProxy) Commit

func (*RequestProxy) GetDownloadLocations

func (p *RequestProxy) GetDownloadLocations(ctx context.Context, in *pb.GetDownloadLocsRequest) (*pb.GetDownloadLocsResponse, error)

func (*RequestProxy) GetRepoMetadata

func (*RequestProxy) GetUploadLocations

func (p *RequestProxy) GetUploadLocations(ctx context.Context, in *pb.GetUploadLocsRequest) (*pb.GetUploadLocsResponse, error)

func (*RequestProxy) HasChunks

func (*RequestProxy) ListTableFiles

func (*RequestProxy) Rebase

func (*RequestProxy) RefreshTableFileUrl

func (*RequestProxy) Root

func (*RequestProxy) ServeHTTP

func (p *RequestProxy) ServeHTTP(writer http.ResponseWriter, request *http.Request)

func (*RequestProxy) Start

func (p *RequestProxy) Start()

func (*RequestProxy) StreamDownloadLocations

func (p *RequestProxy) StreamDownloadLocations(stream pb.ChunkStoreService_StreamDownloadLocationsServer) (err error)

type ResponseProxy

type ResponseProxy struct {
	// contains filtered or unexported fields
}

func NewResponseProxy

func NewResponseProxy(config *config.ResponseProxyConfig) (*ResponseProxy, error)

func (*ResponseProxy) Close

func (p *ResponseProxy) Close()

func (*ResponseProxy) Start

func (p *ResponseProxy) Start()

type StreamDownloadLocationsClientEx

type StreamDownloadLocationsClientEx struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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