Documentation ¶
Index ¶
- func BlockBodiesPID(n utils.Network) protocol.ID
- func BlockHeadersPID(n utils.Network) protocol.ID
- func EventsPID(n utils.Network) protocol.ID
- func ReceiptsPID(n utils.Network) protocol.ID
- func TransactionsPID(n utils.Network) protocol.ID
- type Client
- func (c *Client) RequestBlockBodies(ctx context.Context, req *spec.BlockBodiesRequest) (Stream[*spec.BlockBodiesResponse], error)
- func (c *Client) RequestBlockHeaders(ctx context.Context, req *spec.BlockHeadersRequest) (Stream[*spec.BlockHeadersResponse], error)
- func (c *Client) RequestEvents(ctx context.Context, req *spec.EventsRequest) (Stream[*spec.EventsResponse], error)
- func (c *Client) RequestReceipts(ctx context.Context, req *spec.ReceiptsRequest) (Stream[*spec.ReceiptsResponse], error)
- func (c *Client) RequestTransactions(ctx context.Context, req *spec.TransactionsRequest) (Stream[*spec.TransactionsResponse], error)
- type Handler
- type NewStreamFunc
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RequestBlockBodies ¶ added in v0.7.0
func (c *Client) RequestBlockBodies(ctx context.Context, req *spec.BlockBodiesRequest) (Stream[*spec.BlockBodiesResponse], error)
func (*Client) RequestBlockHeaders ¶ added in v0.7.0
func (c *Client) RequestBlockHeaders(ctx context.Context, req *spec.BlockHeadersRequest) (Stream[*spec.BlockHeadersResponse], error)
func (*Client) RequestEvents ¶ added in v0.7.0
func (c *Client) RequestEvents(ctx context.Context, req *spec.EventsRequest) (Stream[*spec.EventsResponse], error)
func (*Client) RequestReceipts ¶ added in v0.7.0
func (c *Client) RequestReceipts(ctx context.Context, req *spec.ReceiptsRequest) (Stream[*spec.ReceiptsResponse], error)
func (*Client) RequestTransactions ¶ added in v0.7.0
func (c *Client) RequestTransactions(ctx context.Context, req *spec.TransactionsRequest) (Stream[*spec.TransactionsResponse], error)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(bcReader blockchain.Reader, log utils.Logger) *Handler
func (*Handler) BlockBodiesHandler ¶ added in v0.7.0
func (*Handler) BlockHeadersHandler ¶ added in v0.7.0
func (*Handler) EventsHandler ¶ added in v0.7.0
func (*Handler) ReceiptsHandler ¶ added in v0.7.0
func (*Handler) TransactionsHandler ¶ added in v0.7.0
type NewStreamFunc ¶
type Stream ¶
Stream represents a series of messages that can be accessed by invoking Stream a number of times. After stream is entirely consumed of elements, it should return false as its second return value
func StaticStream ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.