server

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksPipe

type BlocksPipe struct {
	//grpc.ServerStream
	grpc.ClientStream
	// contains filtered or unexported fields
}

func (*BlocksPipe) Context

func (p *BlocksPipe) Context() context.Context

func (*BlocksPipe) Recv

func (p *BlocksPipe) Recv() (*pbfirehose.Response, error)

func (*BlocksPipe) Send

func (p *BlocksPipe) Send(resp *pbfirehose.Response) error

func (*BlocksPipe) SendHeader

func (p *BlocksPipe) SendHeader(metadata.MD) error

func (*BlocksPipe) SetHeader

func (p *BlocksPipe) SetHeader(metadata.MD) error

func (*BlocksPipe) SetTrailer

func (p *BlocksPipe) SetTrailer(metadata.MD)

type ErrSendBlock

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

func NewErrSendBlock

func NewErrSendBlock(inner error) ErrSendBlock

func (ErrSendBlock) Error

func (e ErrSendBlock) Error() string

type FirehoseProxyV1ToV2

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

func NewFirehoseProxyV1ToV2

func NewFirehoseProxyV1ToV2(server *Server) *FirehoseProxyV1ToV2

func (*FirehoseProxyV1ToV2) Blocks

type Option

type Option func(*Server)

func WithLeakyBucketLimiter

func WithLeakyBucketLimiter(size int, dripRate time.Duration) Option

type Server

type Server struct {
	dgrpcserver.Server
	// contains filtered or unexported fields
}

func New

func New(
	transformRegistry *transform.Registry,
	streamFactory *firecore.StreamFactory,
	blockGetter *firehose.BlockGetter,
	logger *zap.Logger,
	authenticator dauth.Authenticator,
	isReady func(context.Context) bool,
	listenAddr string,
	serviceDiscoveryURL *url.URL,
	opts ...Option,
) *Server

func (*Server) Block

func (*Server) Blocks

func (s *Server) Blocks(request *pbfirehose.Request, streamSrv pbfirehose.Stream_BlocksServer) error

func (*Server) BlocksFromLocal

func (s *Server) BlocksFromLocal(ctx context.Context, req *pbfirehose.Request) pbfirehose.Stream_BlocksClient

func (*Server) Launch

func (s *Server) Launch()

Jump to

Keyboard shortcuts

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