Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitsetReference ¶
type Edge ¶
type Edge struct { LRes *engine.LookupResult Policy *WrappedRTreePolicy Bits uint64 // contains filtered or unexported fields }
type Node ¶
type Node struct { Hash iapi.HashSchemeInstance Solutions []*Solution Edges []*Edge // contains filtered or unexported fields }
func (*Node) BestSolutionsFor ¶
func (*Node) UpdateSolutions ¶
type Params ¶
type Params struct { Subject iapi.HashSchemeInstance Engine *engine.Engine Policy *iapi.RTreePolicy //Typically the domain authority Start iapi.HashSchemeInstance EnableOutput bool }
type RTreeBuilder ¶
type RTreeBuilder struct {
// contains filtered or unexported fields
}
func NewRTreeBuilder ¶
func NewRTreeBuilder(ctx context.Context, p *Params) (*RTreeBuilder, error)
func (*RTreeBuilder) Build ¶
func (tb *RTreeBuilder) Build(msgs chan string)
func (*RTreeBuilder) Result ¶
func (tb *RTreeBuilder) Result() *Solution
type Solution ¶
type Solution struct { Bits uint64 Paths [][]*Edge TTL int //Multihash -> attestation Set map[string]*Edge Terminal *Node }
func (*Solution) Policy ¶
func (s *Solution) Policy() *iapi.RTreePolicy
type WrappedRTreePolicy ¶
type WrappedRTreePolicy iapi.RTreePolicy
func (*WrappedRTreePolicy) Bitset ¶
func (w *WrappedRTreePolicy) Bitset(ref *BitsetReference) (uint64, error)
func (*WrappedRTreePolicy) GenerateBitsetReference ¶
func (w *WrappedRTreePolicy) GenerateBitsetReference() (*BitsetReference, error)
func (*WrappedRTreePolicy) TTL ¶
func (w *WrappedRTreePolicy) TTL() int
Click to show internal directories.
Click to hide internal directories.