Documentation ¶
Index ¶
- type Server
- func (s *Server) Blocks(r *pbbstream.BlockRequest, stream pbbstream.BlockStream_BlocksServer) error
- func (s *Server) Close()
- func (s *Server) GetHeadInfo(ctx context.Context, req *pbheadinfo.HeadInfoRequest) (*pbheadinfo.HeadInfoResponse, error)
- func (s *Server) PushBlock(blk *bstream.Block) error
- func (s *Server) Ready() bool
- func (s *Server) Serve(listener net.Listener) error
- func (s *Server) SetHeadInfo(num uint64, id string, blkTime time.Time, libNum uint64)
- type Source
- type SourceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Blocks ¶
func (s *Server) Blocks(r *pbbstream.BlockRequest, stream pbbstream.BlockStream_BlocksServer) error
func (*Server) GetHeadInfo ¶
func (s *Server) GetHeadInfo(ctx context.Context, req *pbheadinfo.HeadInfoRequest) (*pbheadinfo.HeadInfoResponse, error)
type Source ¶
func (*Source) SetParallelPreproc ¶
func (s *Source) SetParallelPreproc(f bstream.PreprocessFunc, threads int)
type SourceOption ¶
type SourceOption = func(s *Source)
func WithName ¶
func WithName(name string) SourceOption
func WithNumGator ¶
func WithNumGator(blockNum uint64, exclusive bool) SourceOption
func WithParallelPreproc ¶
func WithParallelPreproc(f bstream.PreprocessFunc, threads int) SourceOption
func WithTimeThresholdGator ¶
func WithTimeThresholdGator(threshold time.Duration) SourceOption
Click to show internal directories.
Click to hide internal directories.