Documentation ¶
Index ¶
- Constants
- Variables
- func NewCursorFromString(cursorStr string) (*cursor, error)
- func NewCursorGate(c *cursor, descending bool) *cursorGate
- func NewDmeshPlanner(peerFetcher func() []*dmesh.SearchPeer, liveDriftThreshold uint64) *dmeshPlanner
- type BackendQuery
- type PeerRange
- type Planner
- type QueryRange
- type Router
Constants ¶
View Source
const UnboundedInt int64 = int64(9_000_000_000_000_000_000)
Variables ¶
View Source
var ContextCanceled = errors.New("context canceled")
View Source
var InvalidArgument = errors.New("invalid argument")
View Source
var LimitReached = errors.New("limit reached")
Functions ¶
func NewCursorFromString ¶
func NewCursorGate ¶
func NewCursorGate(c *cursor, descending bool) *cursorGate
func NewDmeshPlanner ¶
func NewDmeshPlanner(peerFetcher func() []*dmesh.SearchPeer, liveDriftThreshold uint64) *dmeshPlanner
Types ¶
type BackendQuery ¶
type BackendQuery struct { LastBlockRead int64 // contains filtered or unexported fields }
type PeerRange ¶
type PeerRange struct { Conn *grpc.ClientConn Addr string LowBlockNum uint64 HighBlockNum uint64 ServesReversible bool }
func NewPeerRange ¶
func NewPeerRange(peer *dmesh.SearchPeer, lowBlockNum, highBlockNum uint64) *PeerRange
type QueryRange ¶
type QueryRange struct {
// contains filtered or unexported fields
}
type Router ¶
func New ¶
func New(dmeshClient dmeshClient.SearchClient, headDelayTolerance uint64, libDelayTolerance uint64, blockIDClient pbblockmeta.BlockIDClient, forksClient pbblockmeta.ForksClient, enableRetry bool) *Router
func (*Router) Check ¶
func (r *Router) Check(ctx context.Context, in *pbhealth.HealthCheckRequest) (*pbhealth.HealthCheckResponse, error)
Check only validates "router.ready" bool and the shutting down process. Does *not* depend on contiguousness
func (*Router) StreamMatches ¶
func (r *Router) StreamMatches(req *pb.RouterRequest, stream pb.Router_StreamMatchesServer) error
Click to show internal directories.
Click to hide internal directories.