Documentation ¶
Index ¶
- Variables
- type Lantern
- func (l *Lantern) AddEdge(ctx context.Context, tail string, head string, weight float32, ...) error
- func (l *Lantern) Close() error
- func (l *Lantern) DeleteEdge(ctx context.Context, tail string, head string) error
- func (l *Lantern) DeleteVertex(ctx context.Context, key string) error
- func (l *Lantern) GetEdge(ctx context.Context, tail string, head string) (float32, error)
- func (l *Lantern) GetVertex(ctx context.Context, key string) (*Vertex, error)
- func (l *Lantern) Illuminate(ctx context.Context, seed string, step int, k int, tfidf bool) (*model.Graph[string, *Vertex], error)
- func (l *Lantern) PutEdge(ctx context.Context, tail string, head string, weight float32, ...) error
- func (l *Lantern) PutVertex(ctx context.Context, key string, value interface{}, ttl time.Duration) error
- type Vertex
- func (v *Vertex) BoolValue() (bool, error)
- func (v *Vertex) BytesValue() ([]byte, error)
- func (v *Vertex) FloatValue() (float64, error)
- func (v *Vertex) IntValue() (int, error)
- func (v *Vertex) IsNil() bool
- func (v *Vertex) StringValue() (string, error)
- func (v *Vertex) TimeValue() (time.Time, error)
- func (v *Vertex) UIntValue() (uint, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidType = errors.New("invalid type")
Functions ¶
This section is empty.
Types ¶
type Lantern ¶
type Lantern struct {
// contains filtered or unexported fields
}
func (*Lantern) DeleteEdge ¶ added in v0.4.0
func (*Lantern) DeleteVertex ¶ added in v0.4.0
func (*Lantern) Illuminate ¶
Click to show internal directories.
Click to hide internal directories.