accessor

package
v0.0.0-...-01993d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algo

type Algo byte
const (
	BFS Algo = iota
	DFS
)

type GraphAccessRequest

type GraphAccessRequest struct {
	Src, Label uint32
	Dir        parser.Direction
	QueryId    int
}

type GraphAccessor

type GraphAccessor interface {
	StartQuery(Algo) int
	GetNeighbours(request GraphAccessRequest) []uint32
	EndQuery(int)
	GetStats() string
}

type GrpcGraphAccessor

type GrpcGraphAccessor struct {
	// contains filtered or unexported fields
}

func InitializeGraphAccess

func InitializeGraphAccess(address string) *GrpcGraphAccessor

func (*GrpcGraphAccessor) Close

func (g *GrpcGraphAccessor) Close()

func (*GrpcGraphAccessor) EndQuery

func (g *GrpcGraphAccessor) EndQuery(id int)

func (*GrpcGraphAccessor) GetNeighbours

func (g *GrpcGraphAccessor) GetNeighbours(request GraphAccessRequest) []uint32

func (*GrpcGraphAccessor) GetStats

func (g *GrpcGraphAccessor) GetStats() string

func (*GrpcGraphAccessor) StartQuery

func (g *GrpcGraphAccessor) StartQuery(algorithm Algo) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL