Documentation ¶
Index ¶
- type BlocksPipe
- func (p *BlocksPipe) Context() context.Context
- func (p *BlocksPipe) Recv() (*pbfirehose.Response, error)
- func (p *BlocksPipe) Send(resp *pbfirehose.Response) error
- func (p *BlocksPipe) SendHeader(metadata.MD) error
- func (p *BlocksPipe) SetHeader(metadata.MD) error
- func (p *BlocksPipe) SetTrailer(metadata.MD)
- type ErrSendBlock
- type FirehoseProxyV1ToV2
- type Option
- type Server
- func (s *Server) Block(ctx context.Context, request *pbfirehose.SingleBlockRequest) (*pbfirehose.SingleBlockResponse, error)
- func (s *Server) Blocks(request *pbfirehose.Request, streamSrv pbfirehose.Stream_BlocksServer) error
- func (s *Server) BlocksFromLocal(ctx context.Context, req *pbfirehose.Request) pbfirehose.Stream_BlocksClient
- func (s *Server) Launch()
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) 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 ¶
func (s *FirehoseProxyV1ToV2) Blocks(req *pbfirehoseV1.Request, streamSrv pbfirehoseV1.Stream_BlocksServer) error
type Server ¶
type Server struct { dgrpcserver.Server // contains filtered or unexported fields }
func (*Server) Block ¶
func (s *Server) Block(ctx context.Context, request *pbfirehose.SingleBlockRequest) (*pbfirehose.SingleBlockResponse, error)
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
Click to show internal directories.
Click to hide internal directories.